[cfe-commits] r135256 - /cfe/trunk/lib/CodeGen/CGCall.cpp
Chris Lattner
sabre at nondot.org
Thu Jul 14 23:41:05 PDT 2011
Author: lattner
Date: Fri Jul 15 01:41:05 2011
New Revision: 135256
URL: http://llvm.org/viewvc/llvm-project?rev=135256&view=rev
Log:
protect some calls to ConvertType when a function info is under construction
to prevent recursive compilation problems. This fixes a failure of CodeGen/decl.c
on x86-32 targets that don't fill in the coerce-to type.
Modified:
cfe/trunk/lib/CodeGen/CGCall.cpp
Modified: cfe/trunk/lib/CodeGen/CGCall.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCall.cpp?rev=135256&r1=135255&r2=135256&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCall.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCall.cpp Fri Jul 15 01:41:05 2011
@@ -271,9 +271,6 @@
// Compute ABI information.
getABIInfo().computeInfo(*FI);
- bool Erased = FunctionsBeingProcessed.erase(FI); (void)Erased;
- assert(Erased && "Not in set?");
-
// Loop over all of the computed argument and return value info. If any of
// them are direct or extend without a specified coerce type, specify the
// default now.
@@ -286,6 +283,9 @@
if (I->info.canHaveCoerceToType() && I->info.getCoerceToType() == 0)
I->info.setCoerceToType(ConvertType(I->type));
+ bool Erased = FunctionsBeingProcessed.erase(FI); (void)Erased;
+ assert(Erased && "Not in set?");
+
return *FI;
}
More information about the cfe-commits
mailing list