Fix code to make GCC 2.96 happy

llvm-svn: 753
This commit is contained in:
Chris Lattner 2001-10-13 06:34:47 +00:00
parent 8cbbbef674
commit f7d66a73ce
1 changed files with 2 additions and 1 deletions

View File

@ -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