[clang] [clang] -funique-internal-linkage-names should not be applied to asm label (PR #202004)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jun 5 22:37:14 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 54119 tests passed
* 1291 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Clang
<details>
<summary>Clang.CodeGen/unique-internal-linkage-names.c</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 C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c -emit-llvm -funique-internal-linkage-names -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c
# 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 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c' -emit-llvm -funique-internal-linkage-names -o -
# 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\CodeGen\unique-internal-linkage-names.c'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c:9:11: error: CHECK: expected string not found in input
# | // CHECK: define internal i32 @_ZL7uniquedv.__uniq.{{[0-9]+}}(
# | ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c'
# | ^
# | <stdin>:25:1: note: possible intended match here
# | define internal i32 @uniqued() #1 {
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\unique-internal-linkage-names.c'
# | check:9'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGen\\unique-internal-linkage-names.c"
# | check:9'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:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 4: target triple = "x86_64-pc-windows-msvc"
# | check:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5:
# | check:9'0 ~
# | 6: $overloaded_external = comdat any
# | check:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 20: %call1 = call i32 @custom_label() #2
# | check:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 21: ret void
# | check:9'0 ~~~~~~~~~~
# | 22: }
# | check:9'0 ~~
# | 23:
# | check:9'0 ~
# | 24: ; Function Attrs: noinline nounwind optnone
# | check:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: define internal i32 @uniqued() #1 {
# | check:9'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:9'1 ? possible intended match
# | 26: entry:
# | check:9'0 ~~~~~~~
# | 27: ret i32 0
# | check:9'0 ~~~~~~~~~~~
# | 28: }
# | check:9'0 ~~
# | 29:
# | check:9'0 ~
# | 30: ; Function Attrs: noinline nounwind optnone
# | check:9'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/202004
More information about the cfe-commits
mailing list