[all-commits] [llvm/llvm-project] 01d1de: [MC] Reject byte alignment if larger than or equal...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Dec 20 14:17:15 PST 2020
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 01d1de81963d91773c92b29e2d08605293c59750
https://github.com/llvm/llvm-project/commit/01d1de81963d91773c92b29e2d08605293c59750
Author: Fangrui Song <i at maskray.me>
Date: 2020-12-20 (Sun, 20 Dec 2020)
Changed paths:
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/test/MC/AsmParser/align_invalid.s
Log Message:
-----------
[MC] Reject byte alignment if larger than or equal to 2**32
This is consistent with the resolution to power-of-2 alignments.
Otherwise, emitCodeAlignment and emitValueToAlignment cannot handle alignments
larger than 2**32 and will trigger assertion failure (PR35218).
Note: GNU as as of 2.35 will use 1 for such a large byte `.align`
More information about the All-commits
mailing list