diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-03 03:26:47 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-03 03:26:47 +0000 |
commit | d4f981d00f4064592d488d507ba106187140d3cb (patch) | |
tree | 0f1af54547b7ca76dd4f1a766800178ae374a0c0 | |
parent | 3b1e3f45c09f62a92b53404754c01dead9645c93 (diff) |
Fix the linker. This bug was not fun to track down. grr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1090 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/iMemory.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index 4e50f30beb..7b522c5c50 100644 --- a/include/llvm/iMemory.h +++ b/include/llvm/iMemory.h @@ -79,7 +79,7 @@ public: virtual Instruction *clone() const { return new MallocInst(getType(), - Operands.size() ? (Value*)Operands[1].get() : 0); + Operands.size() ? (Value*)Operands[0].get() : 0); } virtual const char *getOpcodeName() const { return "malloc"; } @@ -106,7 +106,7 @@ public: virtual Instruction *clone() const { return new AllocaInst(getType(), - Operands.size() ? (Value*)Operands[1].get() : 0); + Operands.size() ? (Value*)Operands[0].get() : 0); } virtual const char *getOpcodeName() const { return "alloca"; } |