mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-29 16:12:44 +00:00
Fix code to make GCC 2.96 happy
llvm-svn: 753
This commit is contained in:
parent
684b485035
commit
edf1aed1df
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user