forked from OSchip/llvm-project
[AVR] Do not kill the dest register for a pseudo instruction
It caused the register to later be dead, which would trigger a verifier error. llvm-svn: 301368
This commit is contained in:
parent
36c3122ecd
commit
ff49a05565
|
@ -983,7 +983,7 @@ bool AVRExpandPseudo::expand<AVR::STWPtrRr>(Block &MBB, BlockIt MBBI) {
|
|||
.addReg(SrcLoReg, getKillRegState(SrcIsKill));
|
||||
|
||||
auto MIBHI = buildMI(MBB, MBBI, OpHi)
|
||||
.addReg(DstReg, getKillRegState(DstIsKill))
|
||||
.addReg(DstReg)
|
||||
.addImm(1)
|
||||
.addReg(SrcHiReg, getKillRegState(SrcIsKill));
|
||||
|
||||
|
|
Loading…
Reference in New Issue