From 1c553bbb50a65595588181846a0266ec85abfdd5 Mon Sep 17 00:00:00 2001 From: Dylan McKay Date: Sat, 10 Dec 2016 11:18:37 +0000 Subject: [PATCH] [AVR] Fix an inline asm assertion which would always trigger It looks like some time in the past, constraint codes were changed from chars being passed around to enums. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289323 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AVR/AVRISelDAGToDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/AVR/AVRISelDAGToDAG.cpp b/lib/Target/AVR/AVRISelDAGToDAG.cpp index 9ef98749cdc..477bae651b9 100644 --- a/lib/Target/AVR/AVRISelDAGToDAG.cpp +++ b/lib/Target/AVR/AVRISelDAGToDAG.cpp @@ -205,7 +205,7 @@ bool AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(const SDValue &Op, std::vector &OutOps) { // Yes hardcoded 'm' symbol. Just because it also has been hardcoded in // SelectionDAGISel (callee for this method). - assert(ConstraintCode == 'm' && "Unexpected asm memory constraint"); + assert(ConstraintCode == InlineAsm::Constraint_m && "Unexpected asm memory constraint"); MachineRegisterInfo &RI = MF->getRegInfo(); const AVRSubtarget &STI = MF->getSubtarget(); -- 2.50.1