From ed3fa8552a9b4c92b0374bf9fdb82ffeb3d6dc82 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 30 Jul 2007 19:53:57 +0000 Subject: [PATCH] Fix a typo/thinko. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40599 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.34.1