diff options
author | John McCall <rjmccall@apple.com> | 2009-10-23 23:03:21 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-10-23 23:03:21 +0000 |
commit | e27ec8ad56dbf1efb2de004b90fbbb86f740e3f1 (patch) | |
tree | 8de71b2a430b93e5324d7d0c753c0873938d8935 /lib/CodeGen/CodeGenTypes.cpp | |
parent | 097bfb11759be2187732329ecf4c0849609cdf57 (diff) |
Store the builtin types as CanQualTypes. Expand a bit on the CanQual API,
but also remove some methods that cause ambiguities, and generally
make CanQual<blah> more analogous to QualType.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenTypes.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenTypes.cpp b/lib/CodeGen/CodeGenTypes.cpp index dedf824ef9..d43d13e26b 100644 --- a/lib/CodeGen/CodeGenTypes.cpp +++ b/lib/CodeGen/CodeGenTypes.cpp @@ -180,7 +180,7 @@ static const llvm::Type* getTypeForFormat(llvm::LLVMContext &VMContext, } const llvm::Type *CodeGenTypes::ConvertNewType(QualType T) { - const clang::Type &Ty = *Context.getCanonicalType(T); + const clang::Type &Ty = *Context.getCanonicalType(T).getTypePtr(); switch (Ty.getTypeClass()) { #define TYPE(Class, Base) |