summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan McKay <dylanmckay34@gmail.com>2016-12-10 11:18:37 +0000
committerDylan McKay <dylanmckay34@gmail.com>2016-12-10 11:18:37 +0000
commit801a4bd4edad47d7b43495d8818a202bb1293141 (patch)
tree503121a011229d639d6a5e934d94c58b19180131
parent5c90b8cb4f3b922dd66c0fdb81193f9d91aa3fb4 (diff)
downloadbcm5719-llvm-801a4bd4edad47d7b43495d8818a202bb1293141.tar.gz
bcm5719-llvm-801a4bd4edad47d7b43495d8818a202bb1293141.zip
[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. llvm-svn: 289323
-rw-r--r--llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp b/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
index 9ef98749cdc..477bae651b9 100644
--- a/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
+++ b/llvm/lib/Target/AVR/AVRISelDAGToDAG.cpp
@@ -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>();
OpenPOWER on IntegriCloud