summaryrefslogtreecommitdiff
path: root/include/llvm/iMemory.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-13 06:20:07 +0000
committerChris Lattner <sabre@nondot.org>2001-10-13 06:20:07 +0000
commitd97f8024536697d9e1347251e6373593decdd075 (patch)
treefc3a5ec39c70a14c0dbbadac6bc9dd7c066597d3 /include/llvm/iMemory.h
parent004adcafec3caa84a29926b877309cc8fdf21f96 (diff)
downloadllvm-d97f8024536697d9e1347251e6373593decdd075.tar.gz
llvm-d97f8024536697d9e1347251e6373593decdd075.tar.bz2
llvm-d97f8024536697d9e1347251e6373593decdd075.tar.xz
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
Diffstat (limited to 'include/llvm/iMemory.h')
-rw-r--r--include/llvm/iMemory.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h
index 147ff18e94..9e7267d69e 100644
--- a/include/llvm/iMemory.h
+++ b/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"; }