Fix the linker. This bug was not fun to track down. grr

llvm-svn: 1090
This commit is contained in:
Chris Lattner 2001-11-03 03:26:47 +00:00
parent 866cbddec8
commit c7724169bf
1 changed files with 2 additions and 2 deletions

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