diff options
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionResolution.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 2306df999d..e2165c77cb 100644 --- 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... // |