Author: ggreif
Date: Wed Jul 28 04:19:33 2010
New Revision: 109575
URL: http://llvm.org/viewvc/llvm-project?rev=109575&view=rev
Log:
we are not supposed to create an improper callsite using a CallInstr; leave a
fixme mentioning the simplification when CallSite can clone itself
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=109575&r1=109574&r2=109575&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Jul 28 04:19:33 2010
@@ -1329,6 +1329,7 @@
// TODO: Do invokes ever occur in C code? If so, we should handle them
too.
llvm::Value::use_iterator I = UI++; // Increment before the CI is erased.
llvm::CallInst *CI = dyn_cast<llvm::CallInst>(*I);
+ if (!CI) continue; // FIXME: when we allow Invoke, just do CallSite CS(*I)
llvm::CallSite CS(CI);
if (!CI || !CS.isCallee(I)) continue;
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits