diff options
| author | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:11:20 +0000 |
|---|---|---|
| committer | Christopher Lamb <christopher.lamb@gmail.com> | 2007-12-17 01:11:20 +0000 |
| commit | 77560fbde7cbb2d2d6cdf39c9f3ad4feb725daaf (patch) | |
| tree | 31d99f12b338b509459330acf5c4e72908094ab5 /clang/CodeGen/CodeGenModule.cpp | |
| parent | 55c6d4f22f50f049146e050d93052023fd7cfd3b (diff) | |
| download | bcm5719-llvm-77560fbde7cbb2d2d6cdf39c9f3ad4feb725daaf.tar.gz bcm5719-llvm-77560fbde7cbb2d2d6cdf39c9f3ad4feb725daaf.zip | |
Update to use new PointerType::getUnqual() api.
llvm-svn: 45081
Diffstat (limited to 'clang/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/CodeGen/CodeGenModule.cpp b/clang/CodeGen/CodeGenModule.cpp index 2df1877e79c..ea908d398c9 100644 --- a/clang/CodeGen/CodeGenModule.cpp +++ b/clang/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. |

