From: Reid Spencer Date: Mon, 30 Jul 2007 19:53:57 +0000 (+0000) Subject: Fix a typo/thinko. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=ed3fa8552a9b4c92b0374bf9fdb82ffeb3d6dc82;p=oota-llvm.git Fix a typo/thinko. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40599 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 36e1fc2fe95..06a67493750 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -7974,7 +7974,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) { if (InvokeInst *II = dyn_cast(Caller)) { NC = new InvokeInst(Callee, II->getNormalDest(), II->getUnwindDest(), &Args[0], Args.size(), Caller->getName(), Caller); - cast(II)->setCallingConv(II->getCallingConv()); + cast(NC)->setCallingConv(II->getCallingConv()); } else { NC = new CallInst(Callee, &Args[0], Args.size(), Caller->getName(), Caller); if (cast(Caller)->isTailCall())