mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
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
This commit is contained in:
parent
9f9e2befd0
commit
8f486ddc76
@ -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…
Reference in New Issue
Block a user