Fix a typo/thinko.
authorReid Spencer <rspencer@reidspencer.com>
Mon, 30 Jul 2007 19:53:57 +0000 (19:53 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 30 Jul 2007 19:53:57 +0000 (19:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40599 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 36e1fc2fe958af506e71d0d66ee48f91f47bfb78..06a67493750ca0507afda0059dd12b2e02db5adc 100644 (file)
@@ -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())