Fixed bug where we performed addition instead of subtraction during

constant propagation.

llvm-svn: 46095
This commit is contained in:
Ted Kremenek 2008-01-16 22:20:36 +00:00
parent e914bb8183
commit 493444fc19
1 changed files with 1 additions and 1 deletions

View File

@ -134,7 +134,7 @@ public:
ExprVariantTy operator-(const ExprVariantTy& X) const {
if (!isConstant || !X.isConstant) return ExprVariantTy();
else return ExprVariantTy(val+X.val);
else return ExprVariantTy(val-X.val);
}
};
} // end anonymous namespace