projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
853f9be
)
Fix bug with last patch which would occur when a call returned void and we
author
Chris Lattner
<sabre@nondot.org>
Tue, 30 Jul 2002 02:42:49 +0000
(
02:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 30 Jul 2002 02:42:49 +0000
(
02:42
+0000)
attempted to assign it a name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3142
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/FunctionResolution.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/FunctionResolution.cpp
b/lib/Transforms/IPO/FunctionResolution.cpp
index 2306df999db67e16ce89c9767ca541a267eb4da6..e2165c77cb74cf7b2e61903ad1303fdd48678d10 100644
(file)
--- a/
lib/Transforms/IPO/FunctionResolution.cpp
+++ b/
lib/Transforms/IPO/FunctionResolution.cpp
@@
-81,7
+81,8
@@
static void ConvertCallTo(CallInst *CI, Function *Dest) {
BB->getInstList().remove(BBI);
// Transfer the name over...
- NewCall->setName(CI->getName());
+ if (NewCall->getType() != Type::VoidTy)
+ NewCall->setName(CI->getName());
// Replace uses of the old instruction with the appropriate values...
//