parent
cdb135a96b
commit
e28ae30a8e
|
|
@ -899,7 +899,7 @@ Instruction *InstCombiner::visitCallSite(CallSite CS) {
|
||||||
new StoreInst(ConstantInt::getTrue(Callee->getContext()),
|
new StoreInst(ConstantInt::getTrue(Callee->getContext()),
|
||||||
UndefValue::get(Type::getInt1PtrTy(Callee->getContext())),
|
UndefValue::get(Type::getInt1PtrTy(Callee->getContext())),
|
||||||
OldCall);
|
OldCall);
|
||||||
// If OldCall dues not return void then replaceAllUsesWith undef.
|
// If OldCall does not return void then replaceAllUsesWith undef.
|
||||||
// This allows ValueHandlers and custom metadata to adjust itself.
|
// This allows ValueHandlers and custom metadata to adjust itself.
|
||||||
if (!OldCall->getType()->isVoidTy())
|
if (!OldCall->getType()->isVoidTy())
|
||||||
ReplaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType()));
|
ReplaceInstUsesWith(*OldCall, UndefValue::get(OldCall->getType()));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue