[llvm] Fix Attributor crash on mismatched callee return types (PR #230757)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 10 02:38:22 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 143898 tests passed
* 3515 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Transforms/Attributor/callsite-return-mismatched-callee.ll</summary>

```
Exit Code: 3221225501

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=verify -disable-output C:\_work\llvm-project\llvm-project\llvm\test\Transforms\Attributor\callsite-return-mismatched-callee.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=verify -disable-output 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\Attributor\callsite-return-mismatched-callee.ll'
# note: command had no output on stdout or stderr
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=attributor-cgscc -disable-output C:\_work\llvm-project\llvm-project\llvm\test\Transforms\Attributor\callsite-return-mismatched-callee.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=attributor-cgscc -disable-output 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\Attributor\callsite-return-mismatched-callee.ll'
# .---command stderr------------
# | Assertion failed: RefereeN && "Visited function should already have an associated node", file C:\_work\llvm-project\llvm-project\llvm\lib\Analysis\CGSCCPassManager.cpp, line 950
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: c:\\_work\\llvm-project\\llvm-project\\build\\bin\\opt.exe -passes=attributor-cgscc -disable-output C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Transforms\\Attributor\\callsite-return-mismatched-callee.ll
# | 1.	Running pass "cgscc(attributor-cgscc)" on module "C:\_work\llvm-project\llvm-project\llvm\test\Transforms\Attributor\callsite-return-mismatched-callee.ll"
# | Exception Code: 0xC000001D
# |  #0 0x00007ff75ea79286 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x19286)
# |  #1 0x00007ffdd95fbb04 (C:\Windows\System32\ucrtbase.dll+0x7bb04)
# |  #2 0x00007ffdd95fcad1 (C:\Windows\System32\ucrtbase.dll+0x7cad1)
# |  #3 0x00007ffdd95fe4a1 (C:\Windows\System32\ucrtbase.dll+0x7e4a1)
# |  #4 0x00007ffdd95fe6e1 (C:\Windows\System32\ucrtbase.dll+0x7e6e1)
# |  #5 0x00007ff75fd02c47 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x12a2c47)
# |  #6 0x00007ff761d68c4a (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x3308c4a)
# |  #7 0x00007ff75fd0090e (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x12a090e)
# |  #8 0x00007ff75fd022c8 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x12a22c8)
# |  #9 0x00007ff7627dc2ab (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x3d7c2ab)
# | #10 0x00007ff761a40f43 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x2fe0f43)
# | #11 0x00007ff761a437ec (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x2fe37ec)
# | #12 0x00007ff761a4ae68 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x2feae68)
# | #13 0x00007ff761a4b6dc (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x2feb6dc)
# | #14 0x00007ff75fcf8bce (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x1298bce)
# | #15 0x00007ff75fcfa237 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x129a237)
# | #16 0x00007ff75f9bb78b (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0xf5b78b)
# | #17 0x00007ff75edb61f8 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x3561f8)
# | #18 0x00007ff75ea65e8d (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x5e8d)
# | #19 0x00007ff75ea6105e (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x105e)
# | #20 0x00007ff7638d3e30 (c:\_work\llvm-project\llvm-project\build\bin\opt.exe+0x4e73e30)
# | #21 0x00007ffde3374cb0 (C:\Windows\System32\KERNEL32.DLL+0x14cb0)
# | #22 0x00007ffdef3fedeb (C:\Windows\SYSTEM32\ntdll.dll+0x7edeb)
# `-----------------------------
# error: command failed with exit status: 0xc000001d

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/230757


More information about the llvm-commits mailing list