summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/Expressions.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 06:34:47 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 06:34:47 +0000
commitf7d66a73ce52d717646ba7f784e06f62a255fdd0 (patch)
tree9c630909da076992ffdfe4ff79433a2771103ee0 /llvm/lib/Analysis/Expressions.cpp
parent8cbbbef674ba632a0d0c234ea4e4da590b386bda (diff)
downloadbcm5719-llvm-f7d66a73ce52d717646ba7f784e06f62a255fdd0.tar.gz
bcm5719-llvm-f7d66a73ce52d717646ba7f784e06f62a255fdd0.zip
Fix code to make GCC 2.96 happy
llvm-svn: 753
Diffstat (limited to 'llvm/lib/Analysis/Expressions.cpp')
-rw-r--r--llvm/lib/Analysis/Expressions.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Expressions.cpp b/llvm/lib/Analysis/Expressions.cpp
index e6f4cfa9478..ed04f1d818a 100644
--- a/llvm/lib/Analysis/Expressions.cpp
+++ b/llvm/lib/Analysis/Expressions.cpp
@@ -73,7 +73,8 @@ struct DefOne : public DefVal {
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
OpenPOWER on IntegriCloud