]> granicus.if.org Git - llvm/commitdiff
[AVR] Fix an inline asm assertion which would always trigger
authorDylan McKay <dylanmckay34@gmail.com>
Sat, 10 Dec 2016 11:18:37 +0000 (11:18 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sat, 10 Dec 2016 11:18:37 +0000 (11:18 +0000)
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

index 9ef98749cdccbd693c19969d9b8f8f7c8a1e416f..477bae651b99a69befb50f31099ff08ecc99fdfa 100644 (file)
@@ -205,7 +205,7 @@ bool AVRDAGToDAGISel::SelectInlineAsmMemoryOperand(const SDValue &Op,
                                                    std::vector<SDValue> &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<AVRSubtarget>();