Hello,
This patch is a one-line change to avoid using implementation-defined behavior to check whether the MSB bit of Alignment is set in MachineConstantPool.
Can someone commit this please?
Cheers,
Andre
Differential D29012
[PATCH] Avoid the use of signed to unsigned integer conversion implementation-defined behavior avieira on Jan 23 2017, 3:50 AM. Authored by
Details
Diff Detail Event TimelineComment Actions Looks fine to me but probably someone else should also need to have a look. Could you add a small test, if possible. Comment Actions I'm not a language lawyer. Adding some more people that know the standard much better than I do. Comment Actions What problem does this solve? I'm pretty sure LLVM does not run on ones' complement machines. The comparison against zero is "more canonical" in LLVM IR anyway. Comment Actions OK, I just thought having it rely on implementation defined behavior wasn't very nice. Though I do agree it is not a big deal in this case... I'll drop this. (Hoping thats what "abandon revision" means. |