mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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
This commit is contained in:
parent
6a314b58c7
commit
cb05e78cb7
@ -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...
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user