mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Add some casts to make GCC 2.96 happy.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@741 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
004adcafec
commit
d97f802453
@ -60,7 +60,8 @@ public:
|
||||
: AllocationInst(Ty, ArraySize, Malloc, Name) {}
|
||||
|
||||
virtual Instruction *clone() const {
|
||||
return new MallocInst(getType(), Operands.size() ? Operands[1] : 0);
|
||||
return new MallocInst(getType(),
|
||||
Operands.size() ? (Value*)Operands[1].get() : 0);
|
||||
}
|
||||
|
||||
virtual const char *getOpcodeName() const { return "malloc"; }
|
||||
@ -86,7 +87,8 @@ public:
|
||||
: AllocationInst(Ty, ArraySize, Alloca, Name) {}
|
||||
|
||||
virtual Instruction *clone() const {
|
||||
return new AllocaInst(getType(), Operands.size() ? Operands[1] : 0);
|
||||
return new AllocaInst(getType(),
|
||||
Operands.size() ? (Value*)Operands[1].get() : 0);
|
||||
}
|
||||
|
||||
virtual const char *getOpcodeName() const { return "alloca"; }
|
||||
|
Loading…
Reference in New Issue
Block a user