From 602c3c65334b6f525c139a2ee9ebfe2999ff0bba Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 13 Oct 2001 06:20:07 +0000 Subject: [PATCH] Add some casts to make GCC 2.96 happy. llvm-svn: 741 --- llvm/include/llvm/iMemory.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/iMemory.h b/llvm/include/llvm/iMemory.h index 147ff18e94ab..9e7267d69e51 100644 --- a/llvm/include/llvm/iMemory.h +++ b/llvm/include/llvm/iMemory.h @@ -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"; } -- GitLab