From: Chris Lattner Date: Sat, 3 Nov 2001 03:26:47 +0000 (+0000) Subject: Fix the linker. This bug was not fun to track down. grr X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d4f981d00f4064592d488d507ba106187140d3cb;p=oota-llvm.git 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 --- 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"; }