[cfe-commits] r161369 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Eric Christopher
echristo at apple.com
Mon Aug 6 17:18:40 PDT 2012
Author: echristo
Date: Mon Aug 6 19:18:40 2012
New Revision: 161369
URL: http://llvm.org/viewvc/llvm-project?rev=161369&view=rev
Log:
Remove some unintended changes from my last patch.
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=161369&r1=161368&r2=161369&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Mon Aug 6 19:18:40 2012
@@ -558,7 +558,7 @@
// 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 @@
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);
More information about the cfe-commits
mailing list