Add some casts to make GCC 2.96 happy.

llvm-svn: 741
This commit is contained in:
Chris Lattner 2001-10-13 06:20:07 +00:00
parent 107c57093e
commit 602c3c6533
1 changed files with 4 additions and 2 deletions

View File

@ -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"; }