From d4f981d00f4064592d488d507ba106187140d3cb Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 3 Nov 2001 03:26:47 +0000 Subject: [PATCH] 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 --- include/llvm/iMemory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index 4e50f30bebc..7b522c5c50b 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"; }