Skip to content
Snippets Groups Projects
Commit 602c3c65 authored by Chris Lattner's avatar Chris Lattner
Browse files

Add some casts to make GCC 2.96 happy.

llvm-svn: 741
parent 107c5709
No related branches found
No related tags found
No related merge requests found
......@@ -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"; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment