Fix bug: LevelRaise/2003-06-25-ExprAnalysis.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-06-25 17:09:03 +00:00
parent 262a79123b
commit 5db61fdc8a

View File

@ -317,12 +317,10 @@ ExprType ClassifyExpression(Value *Expr) {
if (isa<PointerType>(DestTy))
DestTy = Type::ULongTy; // Pointer types are represented as ulong
/*
if (!Src.getExprType(0)->isLosslesslyConvertibleTo(DestTy)) {
if (Src.ExprTy != ExprType::Constant)
return I; // Converting cast, and not a constant value...
}
*/
const ConstantInt *Offset = Src.Offset;
const ConstantInt *Scale = Src.Scale;