unbreak test/CodeGen/builtins.c, reverting Devang's change.

llvm-svn: 84075
This commit is contained in:
Chris Lattner 2009-10-14 05:49:21 +00:00
parent f92f5557ee
commit 734351d214
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}