projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a314b5
)
Bugfix for test/Regression/Other/2002-03-11-ExprAssertion.ll
author
Chris Lattner
<sabre@nondot.org>
Mon, 11 Mar 2002 20:50:24 +0000
(20:50 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 11 Mar 2002 20:50:24 +0000
(20:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1856
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Analysis/Expressions.cpp
patch
|
blob
|
history
diff --git
a/lib/Analysis/Expressions.cpp
b/lib/Analysis/Expressions.cpp
index 8fdfba6ada6985c3b73daa9c4c99e93ae479f195..9ccd6857974e02ae31f6becbe3bb0ad4ec063326 100644
(file)
--- 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...