diff options
Diffstat (limited to 'lib/Analysis/Expressions.cpp')
-rw-r--r-- | lib/Analysis/Expressions.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/Expressions.cpp b/lib/Analysis/Expressions.cpp index 07fb8c4ff1..f7342963e6 100644 --- a/lib/Analysis/Expressions.cpp +++ b/lib/Analysis/Expressions.cpp @@ -62,6 +62,7 @@ static ConstPoolInt *getIntegralConstant(ConstantPool &CP, unsigned char V, static ConstPoolInt *getUnsignedConstant(ConstantPool &CP, uint64_t V, const Type *Ty) { // FIXME: Lookup prexisting constant in table! + if (Ty->isPointerType()) Ty = Type::ULongTy; ConstPoolInt *CPI; CPI = Ty->isSigned() ? new ConstPoolSInt(Ty, V) : new ConstPoolUInt(Ty, V); @@ -273,7 +274,7 @@ ExprType analysis::ClassifyExpression(Value *Expr) { assert(CPV->getType()->isIntegral() && "Must have an integral type!"); return (ConstPoolInt*)CPV; } // end case Instruction::Cast - // TODO: Handle SUB (at least!) + // TODO: Handle SUB, SHR? } // end switch |