mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
Fix bug test/Regression/Transforms/LevelRaise/2002-03-21-MissedRaise3.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1943 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -71,7 +71,7 @@ static bool MallocConvertableToType(MallocInst *MI, const Type *Ty,
|
|||||||
unsigned OldTypeSize = TD.getTypeSize(MI->getType()->getElementType());
|
unsigned OldTypeSize = TD.getTypeSize(MI->getType()->getElementType());
|
||||||
|
|
||||||
// Must have a scale or offset to analyze it...
|
// Must have a scale or offset to analyze it...
|
||||||
if (!Expr.Offset && !Expr.Scale) return false;
|
if (!Expr.Offset && !Expr.Scale && OldTypeSize == 1) return false;
|
||||||
|
|
||||||
// Get the offset and scale of the allocation...
|
// Get the offset and scale of the allocation...
|
||||||
int OffsetVal = Expr.Offset ? getConstantValue(Expr.Offset) : 0;
|
int OffsetVal = Expr.Offset ? getConstantValue(Expr.Offset) : 0;
|
||||||
|
Reference in New Issue
Block a user