From a57c862c9d3e2573c8b836d38a4bbed5f39eed1b Mon Sep 17 00:00:00 2001 From: Daniel Sanders Date: Wed, 3 Jun 2015 14:17:18 +0000 Subject: [PATCH] [arm] Fix r238921. We must handle Constraint_i too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238925 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMISelDAGToDAG.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Target/ARM/ARMISelDAGToDAG.cpp b/lib/Target/ARM/ARMISelDAGToDAG.cpp index 0944f2c9e42..50afb192b33 100644 --- a/lib/Target/ARM/ARMISelDAGToDAG.cpp +++ b/lib/Target/ARM/ARMISelDAGToDAG.cpp @@ -3923,6 +3923,10 @@ SelectInlineAsmMemoryOperand(const SDValue &Op, unsigned ConstraintID, switch(ConstraintID) { default: llvm_unreachable("Unexpected asm memory constraint"); + case InlineAsm::Constraint_i: + // FIXME: It seems strange that 'i' is needed here since it's supposed to + // be an immediate and not a memory constraint. + // Fallthrough. case InlineAsm::Constraint_m: case InlineAsm::Constraint_Q: case InlineAsm::Constraint_Um: -- 2.34.1