]> granicus.if.org Git - llvm/commit
[AVR] Fix a bug where asm operands are printed twice
authorDylan McKay <dylanmckay34@gmail.com>
Sun, 5 Feb 2017 10:42:49 +0000 (10:42 +0000)
committerDylan McKay <dylanmckay34@gmail.com>
Sun, 5 Feb 2017 10:42:49 +0000 (10:42 +0000)
commit55c879f90ce7d41e6ab345b9ed75b414f3a57e4e
tree43380296ded5fb2de706c2875f7880a71b348bc6
parent10348c4bad8df2f1a0b43d732f8608e799bda54d
[AVR] Fix a bug where asm operands are printed twice

We would unconditionally call printOperand, even if PrintAsmOperand
already printed the immediate.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294121 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AVR/AVRAsmPrinter.cpp
test/CodeGen/AVR/no-print-operand-twice.ll [new file with mode: 0644]