[clang] [clang][DebugInfo] Attribute beginning of catch to opening brace (PR #177032)

via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 20 14:47:24 PST 2026


github-actions[bot] wrote:

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

* 51873 tests passed
* 910 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.DebugInfo/CXX/try-catch.cpp</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -emit-llvm -fexceptions -fcxx-exceptions -debug-info-kind=line-tables-only -o- C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -emit-llvm -fexceptions -fcxx-exceptions -debug-info-kind=line-tables-only -o- 'C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp:14:11: error: CHECK: expected string not found in input
# | // CHECK: %{{.*}} = landingpad { ptr, i32 }
# |           ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp'
# | ^
# | <stdin>:10:18: note: possible intended match here
# | %eh.ThrowInfo = type { i32, i32, i32, i32 }
# |                  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\DebugInfo\CXX\try-catch.cpp' 
# | check:14'0     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |             2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\DebugInfo\\CXX\\try-catch.cpp" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             3: target datalayout = "e-m:w-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             4: target triple = "x86_64-pc-windows-msvc" 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             5:  
# | check:14'0     ~
# |             6: %rtti.TypeDescriptor3 = type { ptr, ptr, [4 x i8] } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             7: %rtti.TypeDescriptor2 = type { ptr, ptr, [3 x i8] } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             8: %eh.CatchableType = type { i32, i32, i32, i32, i32, i32, i32 } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             9: %eh.CatchableTypeArray.1 = type { i32, [1 x i32] } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            10: %eh.ThrowInfo = type { i32, i32, i32, i32 } 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:14'1                      ?                           possible intended match
# |            11:  
# | check:14'0     ~
# |            12: $"??_R0_N at 8" = comdat any 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            13:  
# | check:14'0     ~
# |            14: $"??_R0H at 8" = comdat any 
# | check:14'0     ~~~~~~~~~~~~~~~~~~~~~~~~~
# |            15:  
# | check:14'0     ~
# |             .
# |             .
# |             .
# | >>>>>>
# `-----------------------------
# 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/177032


More information about the cfe-commits mailing list