Skip to content
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commit 7afcd3c

Browse files
author
Dylan McKay
committed
[AVR] Fixed assertion error in backend.
The wrong operand in `LDWRdPtr` was marked as `earlyclobber`. This caused an assertion error when LLVM tried to set the MachineOperand `earlyclobber` flag. Closes #37.
1 parent 7e8c7af commit 7afcd3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Target/AVR/AVRInstrInfo.td

+1-1
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ isReMaterializable = 1 in
10321032
[(set GPR8:$reg, (load i16:$ptrreg))]>,
10331033
Requires<[HasSRAM]>;
10341034

1035-
let Constraints = "@earlyclobber $ptrreg" in
1035+
let Constraints = "@earlyclobber $reg" in
10361036
def LDWRdPtr : Pseudo<(outs DREGS:$reg),
10371037
(ins PTRDISPREGS:$ptrreg),
10381038
"ldw\t$reg, $ptrreg",

0 commit comments

Comments
 (0)