diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:34:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-13 06:34:47 +0000 |
commit | 8f486ddc76a81cacebce30aa997c62f150bf03f1 (patch) | |
tree | 38f93bd9ad931702e188aa639e40eaedb3f369e6 /lib/Analysis/Expressions.cpp | |
parent | 9f9e2befd0d6366f1a2ebd082a1a6d703da21103 (diff) |
Fix code to make GCC 2.96 happy
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@753 91177308-0d34-0410-b5e6-96231b3b80d8
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 e6f4cfa947..ed04f1d818 100644 --- a/lib/Analysis/Expressions.cpp +++ b/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 |