diff options
author | Eric Christopher <echristo@apple.com> | 2012-08-07 00:18:40 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-08-07 00:18:40 +0000 |
commit | d0a97c49c28608a6f4471855de2941c40f11ae4e (patch) | |
tree | 780306f09ad352223ae69d6fbbab739fd623fa9e /lib/CodeGen/CGDebugInfo.cpp | |
parent | 363e5acfd93aa62d94e02b674e753257389643b1 (diff) |
Remove some unintended changes from my last patch.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 9dedf37cc9..00555674f0 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -558,7 +558,7 @@ llvm::DIType CGDebugInfo::CreatePointeeType(QualType PointeeTy, // Handle qualifiers. if (PointeeTy.hasLocalQualifiers()) - return CreateQualifiedType(PointeeTy.getCanonicalType(), Unit); + return CreateQualifiedType(PointeeTy, Unit); if (const RecordType *RTy = dyn_cast<RecordType>(PointeeTy)) { RecordDecl *RD = RTy->getDecl(); @@ -685,9 +685,8 @@ llvm::DIType CGDebugInfo::CreateType(const FunctionType *Ty, if (isa<FunctionNoProtoType>(Ty)) EltTys.push_back(DBuilder.createUnspecifiedParameter()); else if (const FunctionProtoType *FPT = dyn_cast<FunctionProtoType>(Ty)) { - for (unsigned i = 0, e = FPT->getNumArgs(); i != e; ++i) { + for (unsigned i = 0, e = FPT->getNumArgs(); i != e; ++i) EltTys.push_back(getOrCreateType(FPT->getArgType(i), Unit)); - } } llvm::DIArray EltTypeArray = DBuilder.getOrCreateArray(EltTys); |