[llvm-commits] CVS: llvm/include/llvm/Support/PatternMatch.h
Misha Brukman
brukman at cs.uiuc.edu
Fri Jul 30 07:33:17 PDT 2004
Changes in directory llvm/include/llvm/Support:
PatternMatch.h updated: 1.1 -> 1.2
---
Log message:
Enable compilation.
---
Diffs of the changes: (+2 -2)
Index: llvm/include/llvm/Support/PatternMatch.h
diff -u llvm/include/llvm/Support/PatternMatch.h:1.1 llvm/include/llvm/Support/PatternMatch.h:1.2
--- llvm/include/llvm/Support/PatternMatch.h:1.1 Fri Jul 30 02:45:00 2004
+++ llvm/include/llvm/Support/PatternMatch.h Fri Jul 30 09:33:07 2004
@@ -192,7 +192,7 @@
return matchIfNeg(I->getOperand(0), I->getOperand(1));
if (ConstantExpr *CE = dyn_cast<ConstantExpr>(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<ConstantInt>(V))
return L.match(ConstantExpr::getNeg(CI));
return false;
@@ -202,7 +202,7 @@
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);
}
};
More information about the llvm-commits
mailing list