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
This commit is contained in:
Chris Lattner 2001-11-03 03:26:47 +00:00
parent 3b1e3f45c0
commit d4f981d00f

View File

@ -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"; }