[llvm] [AllocToken] Fix attribute mismatch in AllocTokenPass (PR #174959)
Ayumi OHNO via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 9 04:24:45 PST 2026
ayumiohno wrote:
> Change LGTM, but are you able to create a small test case for this?
I tried, but I could not.
In my understanding, it will reproduce in the following conditions:
1. `_Znwm` callee already exists before LowerTypeTestsPass with correct function type, while `__alloc_token_0__Znwm` does not.
2. In the LowerTypeTestsPass, `__alloc_token_0__Znwm` is considered as `ExportedFunctions`. (then created as void).
3. In the AllocTokenPass, `__alloc_token_0__Znwm` call is inserted.
4. VerifyPass runs.
https://github.com/llvm/llvm-project/pull/174959
More information about the llvm-commits
mailing list