diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-14 05:49:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-14 05:49:21 +0000 |
commit | 734351d21429f9e8b411bed4b7d169ebad0b49df (patch) | |
tree | 74c25f5d22eed976644b6b875d3c23eb8eb36e24 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | f92f5557ee1eb5540ae7fd8794d2ff363c4ad928 (diff) | |
download | bcm5719-llvm-734351d21429f9e8b411bed4b7d169ebad0b49df.tar.gz bcm5719-llvm-734351d21429f9e8b411bed4b7d169ebad0b49df.zip |
unbreak test/CodeGen/builtins.c, reverting Devang's change.
llvm-svn: 84075
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d091157f877..4c8ef583677 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -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(); } |