aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChristopher Lamb <christopher.lamb@gmail.com>2007-12-17 01:11:20 +0000
committerChristopher Lamb <christopher.lamb@gmail.com>2007-12-17 01:11:20 +0000
commitddc23f3e6fdc4f83dd46ef7e20394cfbd6063ff9 (patch)
treecee65d95e889d0563363a0ad444eb26e9a9912ff /CodeGen/CodeGenModule.cpp
parentcc8b7f911892b3257e381677d0a82d43bf7b067c (diff)
Update to use new PointerType::getUnqual() api.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45081 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CodeGenModule.cpp')
-rw-r--r--CodeGen/CodeGenModule.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/CodeGen/CodeGenModule.cpp b/CodeGen/CodeGenModule.cpp
index 2df1877e79..ea908d398c 100644
--- a/CodeGen/CodeGenModule.cpp
+++ b/CodeGen/CodeGenModule.cpp
@@ -75,7 +75,7 @@ llvm::Constant *CodeGenModule::GetAddrOfFunctionDecl(const FunctionDecl *D,
}
// If the pointer type matches, just return it.
- llvm::Type *PFTy = llvm::PointerType::get(Ty);
+ llvm::Type *PFTy = llvm::PointerType::getUnqual(Ty);
if (PFTy == F->getType()) return Entry = F;
// If this isn't a definition, just return it casted to the right type.
@@ -132,7 +132,7 @@ llvm::Constant *CodeGenModule::GetAddrOfFileVarDecl(const FileVarDecl *D,
}
// If the pointer type matches, just return it.
- llvm::Type *PTy = llvm::PointerType::get(Ty);
+ llvm::Type *PTy = llvm::PointerType::getUnqual(Ty);
if (PTy == GV->getType()) return Entry = GV;
// If this isn't a definition, just return it casted to the right type.