Fix code to make GCC 2.96 happy
llvm-svn: 753
diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp
index e6f4cfa..ed04f1d 100644
--- a/llvm/lib/Analysis/Expressions.cpp
+++ b/llvm/lib/Analysis/Expressions.cpp
@@ -73,7 +73,8 @@
static ConstPoolInt *getUnsignedConstant(uint64_t V, const Type *Ty) {
if (Ty->isPointerType()) Ty = Type::ULongTy;
- return Ty->isSigned() ? ConstPoolSInt::get(Ty, V) : ConstPoolUInt::get(Ty, V);
+ return Ty->isSigned() ? (ConstPoolInt*)ConstPoolSInt::get(Ty, V)
+ : (ConstPoolInt*)ConstPoolUInt::get(Ty, V);
}
// Add - Helper function to make later code simpler. Basically it just adds