From 1e5f00e7a7e8bb482a5388464f23d743040d1dbb Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 9 Jul 2009 23:48:35 +0000 Subject: This started as a small change, I swear. Unfortunately, lots of things call the [I|F]CmpInst constructors. Who knew!? llvm-svn: 75200 --- llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp') diff --git a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp b/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp index a3cb751921d..24707bd4d86 100644 --- a/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp +++ b/llvm/lib/Transforms/Scalar/PredicateSimplifier.cpp @@ -2693,8 +2693,8 @@ namespace { VRPSolver VRP(VN, IG, UB, VR, PS->DTDFS, PS->modified, &IC); if (VRP.isRelatedBy(IC.getOperand(0), NextVal, ICmpInst::getInversePredicate(Pred))) { - ICmpInst *NewIC = new ICmpInst(ICmpInst::ICMP_EQ, IC.getOperand(0), - NextVal, "", &IC); + ICmpInst *NewIC = new ICmpInst(&IC, ICmpInst::ICMP_EQ, + IC.getOperand(0), NextVal, ""); NewIC->takeName(&IC); IC.replaceAllUsesWith(NewIC); -- cgit v1.2.3