Fixes PR33316.
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Looks like we will still crash if an alias that is referenced from an alias has a non-zero offset. Maybe that isn't so bad though, we should really be requiring aliases to be in canonical form (see D29781 and refs) in which case aliases of aliases would be invalid IR.
That wouldn't stop you from writing a .s that would crash MC, but unfortunately as far as I know it is already quite easy to crash MC right now :(
lib/MC/MCExpr.cpp | ||
---|---|---|
661 | Please add a comment explaining what this is for. | |
test/CodeGen/X86/macho-alias-of-alias.ll | ||
1 ↗ | (On Diff #101658) | Can you convert this to a .s and move to test/MC? |
Please add a comment explaining what this is for.