[flang-commits] [flang] [flang] Rewrite boxproc ops inside module-level regions with -fsafe-trampoline (PR #232167)

via flang-commits flang-commits at lists.llvm.org
Wed Oct 14 20:15:21 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 5135 tests passed
* 143 tests skipped
* 1 test failed

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

### Flang
<details>
<summary>Flang.Fir/boxproc-safe-trampoline-global.fir</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
fir-opt --boxed-procedure="use-safe-trampoline=true" /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir
# executed command: fir-opt --boxed-procedure=use-safe-trampoline=true /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir:41:11: error: CHECK: expected string not found in input
# | // CHECK: fir.call %[[LOAD]]() : () -> ()
# |           ^
# | <stdin>:17:39: note: scanning from here
# |  %1 = fir.load %0 : !fir.ref<() -> ()>
# |                                       ^
# | <stdin>:17:39: note: with "LOAD" equal to "1"
# |  %1 = fir.load %0 : !fir.ref<() -> ()>
# |                                       ^
# | <stdin>:19:2: note: possible intended match here
# |  fir.call %2() : () -> ()
# |  ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Fir/boxproc-safe-trampoline-global.fir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            12:  func.func @_QMmPcallee() { 
# |            13:  return 
# |            14:  } 
# |            15:  func.func @_QMmPcall_through_ptr() { 
# |            16:  %0 = fir.address_of(@_QMmEtarget_ptr) : !fir.ref<() -> ()> 
# |            17:  %1 = fir.load %0 : !fir.ref<() -> ()> 
# | check:41'0                                          {   search range start (exclusive)
# | check:41'1                                              error: no match found in search range
# | check:41'2                                              with "LOAD" equal to "1"
# |            18:  %2 = fir.convert %1 : (() -> ()) -> (() -> ()) 
# |            19:  fir.call %2() : () -> () 
# | check:41'3      ?                          possible intended match
# |            20:  return 
# |            21:  } 
# |            22: } 
# |            23:  
# | check:41'4      } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</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/232167


More information about the flang-commits mailing list