From: Arnaud A. de Grandmaison Date: Fri, 15 Feb 2013 15:18:17 +0000 (+0000) Subject: Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..." X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1fd843eee7b6a35297b2f1c3cb6017ef341a2413;p=platform%2Fupstream%2Fllvm.git Fix refactoring mistake in "Teach InstCombine to work with smaller legal types..." llvm-svn: 175273 --- diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp index 2e7bd92..bad46b4 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp @@ -1347,7 +1347,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI, NTy); return new ICmpInst(ICI.getPredicate(), Builder->CreateTrunc(LHSI->getOperand(0), NTy), - ConstantExpr::getTrunc(NCI, NTy)); + NCI); } break;