From 33a80cd54db48595b13d8dd21aa57c6ab6087135 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 30 Jul 2004 14:33:07 +0000 Subject: [PATCH] Enable compilation. llvm-svn: 15344 --- include/llvm/Support/PatternMatch.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/Support/PatternMatch.h b/include/llvm/Support/PatternMatch.h index 37657bdb339..04ebe2c9076 100644 --- a/include/llvm/Support/PatternMatch.h +++ b/include/llvm/Support/PatternMatch.h @@ -192,7 +192,7 @@ struct neg_match { return matchIfNeg(I->getOperand(0), I->getOperand(1)); if (ConstantExpr *CE = dyn_cast(V)) if (CE->getOpcode() == Instruction::Sub) - return matchIfNeg(I->getOperand(0), I->getOperand(1)); + return matchIfNeg(CE->getOperand(0), CE->getOperand(1)); if (ConstantInt *CI = dyn_cast(V)) return L.match(ConstantExpr::getNeg(CI)); return false; @@ -202,7 +202,7 @@ private: if (!LHS->getType()->isFloatingPoint()) return LHS == Constant::getNullValue(LHS->getType()) && L.match(RHS); else - return LHS == ConstantFP::get(Bop->getType(), -0.0) && L.match(RHS); + return LHS == ConstantFP::get(LHS->getType(), -0.0) && L.match(RHS); } };