forked from OSchip/llvm-project
we are not supposed to create an improper callsite using a CallInstr; leave a fixme mentioning the simplification when CallSite can clone itself
llvm-svn: 109575
This commit is contained in:
parent
9e40956aea
commit
79ac9ed7ac
|
@ -1329,6 +1329,7 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
|
||||||
// TODO: Do invokes ever occur in C code? If so, we should handle them too.
|
// 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::Value::use_iterator I = UI++; // Increment before the CI is erased.
|
||||||
llvm::CallInst *CI = dyn_cast<llvm::CallInst>(*I);
|
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);
|
llvm::CallSite CS(CI);
|
||||||
if (!CI || !CS.isCallee(I)) continue;
|
if (!CI || !CS.isCallee(I)) continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue