summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-07-30 19:53:57 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-07-30 19:53:57 +0000
commitdff9d69cfb325f51bdeae30d84936febf8f377f2 (patch)
treeb310070459626fac1d47e4b77cc32ed31c064853 /llvm/lib
parent4ff9fb14f6730afd60262da01a6176ef51485a58 (diff)
downloadbcm5719-llvm-dff9d69cfb325f51bdeae30d84936febf8f377f2.tar.gz
bcm5719-llvm-dff9d69cfb325f51bdeae30d84936febf8f377f2.zip
Fix a typo/thinko.
llvm-svn: 40599
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 36e1fc2fe95..06a67493750 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -7974,7 +7974,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
if (InvokeInst *II = dyn_cast<InvokeInst>(Caller)) {
NC = new InvokeInst(Callee, II->getNormalDest(), II->getUnwindDest(),
&Args[0], Args.size(), Caller->getName(), Caller);
- cast<InvokeInst>(II)->setCallingConv(II->getCallingConv());
+ cast<InvokeInst>(NC)->setCallingConv(II->getCallingConv());
} else {
NC = new CallInst(Callee, &Args[0], Args.size(), Caller->getName(), Caller);
if (cast<CallInst>(Caller)->isTailCall())
OpenPOWER on IntegriCloud