[GlobalISel][IRTranslator] Fix crash during translation of zero sized loads/stores/args/returns.
This fixes PR35358.
Paths
| Differential D40604
[GlobalISel][IRTranslator] Fix crash during translation of zero sized loads and stores ClosedPublic Authored by aemerson on Nov 29 2017, 7:49 AM.
Details Summary [GlobalISel][IRTranslator] Fix crash during translation of zero sized loads/stores/args/returns. This fixes PR35358.
Diff Detail
Event TimelineHerald added subscribers: javed.absar, kristof.beyls, rovka. · View Herald TranscriptNov 29 2017, 7:49 AM
This revision is now accepted and ready to land.Nov 30 2017, 9:54 AM Closed by commit rL319465: [GlobalISel][IRTranslator] Fix crash during translation of zero sized… (authored by aemerson). · Explain WhyNov 30 2017, 12:06 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 124929 lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/Target/AArch64/AArch64CallLowering.cpp
test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
|
I'm not sure this is correct for the load. If the load result has a use then I'd expect -verify-machineinstrs to complain about a missing def. I think we need to emit an IMPLICIT_DEF.