From fcc716352b893b45da2d6aa9d7afff8ba1ad0527 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 7 Aug 2009 22:36:37 +0000 Subject: [PATCH] A big oops. Thumb1 default CC is a def of CPSR, not a use of CPSR. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78418 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMBaseInstrInfo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/ARM/ARMBaseInstrInfo.h b/lib/Target/ARM/ARMBaseInstrInfo.h index 0b809bd7477..9062c72db4f 100644 --- a/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/lib/Target/ARM/ARMBaseInstrInfo.h @@ -268,7 +268,7 @@ const MachineInstrBuilder &AddDefaultCC(const MachineInstrBuilder &MIB) { static inline const MachineInstrBuilder &AddDefaultT1CC(const MachineInstrBuilder &MIB) { - return MIB.addReg(ARM::CPSR); + return MIB.addReg(ARM::CPSR, getDefRegState(true)); } static inline -- 2.34.1