diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-11 20:50:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-11 20:50:24 +0000 |
commit | cb05e78cb7dff8d47d1ea1dfd8a8b049d1c6574b (patch) | |
tree | 0caed140f53b8ac2abb1e76ee6d1749ac903d8d2 /lib/Analysis/Expressions.cpp | |
parent | 6a314b58c7851a2137b3b534d9edf0fe992ed475 (diff) |
Bugfix for test/Regression/Other/2002-03-11-ExprAssertion.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1856 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/Expressions.cpp')
-rw-r--r-- | lib/Analysis/Expressions.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/Expressions.cpp b/lib/Analysis/Expressions.cpp index 8fdfba6ada..9ccd685797 100644 --- a/lib/Analysis/Expressions.cpp +++ b/lib/Analysis/Expressions.cpp @@ -202,9 +202,8 @@ static ExprType handleAddition(ExprType Left, ExprType Right, Value *V) { // static inline ExprType negate(const ExprType &E, Value *V) { const Type *Ty = V->getType(); - const Type *ETy = E.getExprType(Ty); - ConstantInt *Zero = getUnsignedConstant(0, ETy); - ConstantInt *One = getUnsignedConstant(1, ETy); + ConstantInt *Zero = getUnsignedConstant(0, Ty); + ConstantInt *One = getUnsignedConstant(1, Ty); ConstantInt *NegOne = cast<ConstantInt>(*Zero - *One); if (NegOne == 0) return V; // Couldn't subtract values... |