[cfe-commits] r109575 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Gabor Greif
ggreif at gmail.com
Wed Jul 28 02:19:33 PDT 2010
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;
More information about the cfe-commits
mailing list