unbreak test/CodeGen/builtins.c, reverting Devang's change.
llvm-svn: 84075
This commit is contained in:
@@ -1110,8 +1110,8 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
|
||||
NewCall->setCallingConv(CI->getCallingConv());
|
||||
|
||||
// Finally, remove the old call, replacing any uses with the new one.
|
||||
if (CI->getType() != llvm::Type::getVoidTy(CI->getContext()))
|
||||
CI->replaceAllUsesWith(NewCall);
|
||||
if (!CI->use_empty())
|
||||
CI->replaceAllUsesWith(NewCall);
|
||||
|
||||
CI->eraseFromParent();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user