From: Chris Lattner Date: Wed, 25 Jun 2003 17:09:03 +0000 (+0000) Subject: Fix bug: LevelRaise/2003-06-25-ExprAnalysis.ll X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5db61fdc8a0f81d4277e5b6cc7b7f8ab35d4c8c4;p=oota-llvm.git 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 --- diff --git a/lib/Analysis/Expressions.cpp b/lib/Analysis/Expressions.cpp index 513efe0ac22..b9a1b01dbc9 100644 --- a/lib/Analysis/Expressions.cpp +++ b/lib/Analysis/Expressions.cpp @@ -317,12 +317,10 @@ ExprType ClassifyExpression(Value *Expr) { if (isa(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;