[cfe-commits] r84075 - /cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Chris Lattner
sabre at nondot.org
Tue Oct 13 22:49:21 PDT 2009
Author: lattner
Date: Wed Oct 14 00:49:21 2009
New Revision: 84075
URL: http://llvm.org/viewvc/llvm-project?rev=84075&view=rev
Log:
unbreak test/CodeGen/builtins.c, reverting Devang's change.
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=84075&r1=84074&r2=84075&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Wed Oct 14 00:49:21 2009
@@ -1110,8 +1110,8 @@
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();
}
More information about the cfe-commits
mailing list