[all-commits] [llvm/llvm-project] 3889cc: [llvm-ml] make TEXTEQU directive not to eagerly ex...
wieDasDing via All-commits
all-commits at lists.llvm.org
Wed Jul 29 17:46:38 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3889ccc1a35fdd3f18eecbc01663534fb3f64478
https://github.com/llvm/llvm-project/commit/3889ccc1a35fdd3f18eecbc01663534fb3f64478
Author: wieDasDing <6884440+dingxiangfei2009 at users.noreply.github.com>
Date: 2026-07-29 (Wed, 29 Jul 2026)
Changed paths:
M llvm/lib/MC/MCParser/MasmParser.cpp
A llvm/test/tools/llvm-ml/textequ_expansion.asm
Log Message:
-----------
[llvm-ml] make TEXTEQU directive not to eagerly expand macros in arguments (#209526)
We observed a crash in `TEXTEQU` that pastes two macros into one.
```masm
.data
part1 TEXTEQU <1>
part2 TEXTEQU <0>
joined TEXTEQU part1, part2 ; crash
```
`part1` is immediately rewritten into `1` as integer, which is rejected
by `TEXTEQU` parser. We need to keep `part1` as identifier for `TEXTEQU`
to pick up later.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list