From 05ac87f864a34bff0e6f2a029d48eab3e4cb464a Mon Sep 17 00:00:00 2001 From: Manman Ren Date: Tue, 15 Oct 2013 19:42:32 +0000 Subject: Struct byval: fix a copy-paste error for thumb2. PR17309 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192730 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMISelLowering.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Target') diff --git a/lib/Target/ARM/ARMISelLowering.cpp b/lib/Target/ARM/ARMISelLowering.cpp index 03ca199..b4163c5 100644 --- a/lib/Target/ARM/ARMISelLowering.cpp +++ b/lib/Target/ARM/ARMISelLowering.cpp @@ -7364,7 +7364,7 @@ EmitStructByval(MachineInstr *MI, MachineBasicBlock *BB) const { AddDefaultPred(BuildMI(*BB, MI, dl, TII->get(strOpc), destOut) .addReg(scratch).addReg(destIn) - .addReg(0).addImm(1)); + .addImm(1)); } else { AddDefaultPred(BuildMI(*BB, MI, dl, TII->get(ldrOpc),scratch) -- cgit v1.1