This is an archive of the discontinued LLVM Phabricator instance.

[X86][AsmParser] Emit an error when RIP-relative instructions are used in 32-bit mode
ClosedPublic

Authored by paquette on Jun 26 2018, 1:25 PM.

Details

Summary

Right now, when we use RIP-relative instructions in 32-bit mode, we'll just assert and crash.

This adds an error message which tells the user that they can't do that in 32-bit mode, so that we don't crash (and also can see the issue outside of assert builds).

Diff Detail

Event Timeline

paquette created this revision.Jun 26 2018, 1:25 PM
This revision is now accepted and ready to land.Jun 26 2018, 1:31 PM
paquette closed this revision.Jun 26 2018, 1:39 PM

Thanks! Committed in r335658.

https://reviews.llvm.org/rL335658