aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-25 17:09:03 +0000
committerChris Lattner <sabre@nondot.org>2003-06-25 17:09:03 +0000
commit5db61fdc8a0f81d4277e5b6cc7b7f8ab35d4c8c4 (patch)
treee4f0750a64e8347079e8d3869edc8c09bbbe7dde /lib
parent262a79123b11abdd4dbaee8e8168405266236270 (diff)
downloadexternal_llvm-5db61fdc8a0f81d4277e5b6cc7b7f8ab35d4c8c4.zip
external_llvm-5db61fdc8a0f81d4277e5b6cc7b7f8ab35d4c8c4.tar.gz
external_llvm-5db61fdc8a0f81d4277e5b6cc7b7f8ab35d4c8c4.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/Expressions.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Analysis/Expressions.cpp b/lib/Analysis/Expressions.cpp
index 513efe0..b9a1b01 100644
--- a/lib/Analysis/Expressions.cpp
+++ b/lib/Analysis/Expressions.cpp
@@ -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;