Skip to content

Revert "Reland "[Clang] Enable -Wunused-template under -Wall" (#208001)" - #218638

Merged
cor3ntin merged 1 commit into
llvm:mainfrom
cor3ntin:revert_1529d35
Aug 25, 2026
Merged

cor3ntin merged 1 commit into
llvm:mainfrom
cor3ntin:revert_1529d35

Conversation

@cor3ntin

Copy link
Copy Markdown
Contributor

This reverts commit 1529d35.

There are two issues:

…08001)"

This reverts commit 1529d35.

There are two issues:
 - The change appear fairly disruptive so close to release
   (see comments on llvm#208001)
 - there are false positives (see llvm#218429)
@llvmorg-github-actions llvmorg-github-actions Bot added clang Clang issues not falling into any other category clang:frontend Language frontend issues, e.g. anything involving "Sema" labels Aug 25, 2026
@cor3ntin cor3ntin added this to the LLVM 23.x Release milestone Aug 25, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in LLVM Release Status Aug 25, 2026
@llvmorg-github-actions

Copy link
Copy Markdown

@llvm/pr-subscribers-clang

Author: Corentin Jabot (cor3ntin)

Changes

This reverts commit 1529d35.

There are two issues:

  • The change appear fairly disruptive so close to release (see comments on #208001)
  • there are false positives (see #218429)

Full diff: https://github.com/llvm/llvm-project/pull/218638.diff

5 Files Affected:

  • (modified) clang/docs/ReleaseNotes.md (-5)
  • (modified) clang/include/clang/Basic/DiagnosticGroups.td (+1-1)
  • (modified) clang/test/Misc/warning-wall.c (-2)
  • (modified) clang/test/SemaCXX/warn-func-not-needed.cpp (+1-1)
  • (modified) clang/test/SemaCXX/warn-variable-not-needed.cpp (+1-1)
diff --git a/clang/docs/ReleaseNotes.md b/clang/docs/ReleaseNotes.md
index 64979e07021dc..ef99667d817e3 100644
--- a/clang/docs/ReleaseNotes.md
+++ b/clang/docs/ReleaseNotes.md
@@ -237,11 +237,6 @@ features cannot lower the translation-unit ABI level;
   allowing it to be disabled independently with `-Wno-unused-but-set-global`.
   (#GH148361)
 
-- `-Wunused-template` is now part of `-Wunused` (which is enabled by `-Wall`).
-  It diagnoses unused function and variable templates with internal linkage,
-  which in a header is a latent ODR hazard. It can be disabled with
-  `-Wno-unused-template`. (#GH202945)
-
 - Added `-Wlifetime-safety` to enable lifetime safety analysis,
   a CFG-based intra-procedural analysis that detects use-after-free and related
   temporal safety bugs. See the
diff --git a/clang/include/clang/Basic/DiagnosticGroups.td b/clang/include/clang/Basic/DiagnosticGroups.td
index 9ee0b61a96a32..5403fadccd5d2 100644
--- a/clang/include/clang/Basic/DiagnosticGroups.td
+++ b/clang/include/clang/Basic/DiagnosticGroups.td
@@ -1376,7 +1376,7 @@ def Conversion
 def Unused : DiagGroup<"unused",
                        [UnusedArgument, UnusedFunction, UnusedLabel,
                         // UnusedParameter, (matches GCC's behavior)
-                        UnusedTemplate,
+                        // UnusedTemplate, (clean-up libc++ before enabling)
                         // UnusedMemberFunction, (clean-up llvm before enabling)
                         UnusedPrivateField, UnusedLambdaCapture,
                         UnusedLocalTypedef, UnusedValue, UnusedVariable,
diff --git a/clang/test/Misc/warning-wall.c b/clang/test/Misc/warning-wall.c
index ade9cbaace77e..6d6c4e562400f 100644
--- a/clang/test/Misc/warning-wall.c
+++ b/clang/test/Misc/warning-wall.c
@@ -73,8 +73,6 @@ CHECK-NEXT:      -Wunused-argument
 CHECK-NEXT:      -Wunused-function
 CHECK-NEXT:        -Wunneeded-internal-declaration
 CHECK-NEXT:      -Wunused-label
-CHECK-NEXT:      -Wunused-template
-CHECK-NEXT:        -Wunneeded-internal-declaration
 CHECK-NEXT:      -Wunused-private-field
 CHECK-NEXT:      -Wunused-lambda-capture
 CHECK-NEXT:      -Wunused-local-typedef
diff --git a/clang/test/SemaCXX/warn-func-not-needed.cpp b/clang/test/SemaCXX/warn-func-not-needed.cpp
index 74438543c43b7..cb3cae4cd6c76 100644
--- a/clang/test/SemaCXX/warn-func-not-needed.cpp
+++ b/clang/test/SemaCXX/warn-func-not-needed.cpp
@@ -10,7 +10,7 @@ void foo() {
 }
 
 namespace test1_template {
-template <typename T> static void f() {} // expected-warning {{unused function template}}
+template <typename T> static void f() {}
 template <> void f<int>() {} // expected-warning {{function 'f<int>' is not needed and will not be emitted}}
 template <typename T>
 void foo() {
diff --git a/clang/test/SemaCXX/warn-variable-not-needed.cpp b/clang/test/SemaCXX/warn-variable-not-needed.cpp
index d234e9140e3fd..272c8998d15c0 100644
--- a/clang/test/SemaCXX/warn-variable-not-needed.cpp
+++ b/clang/test/SemaCXX/warn-variable-not-needed.cpp
@@ -4,7 +4,7 @@ namespace test1 {
   static int abc = 42; // expected-warning {{variable 'abc' is not needed and will not be emitted}}
 
   namespace {
-  template <typename T> int abc_template = 0; // expected-warning {{unused variable template}}
+  template <typename T> int abc_template = 0;
   template <> int abc_template<int> = 0; // expected-warning {{variable 'abc_template<int>' is not needed and will not be emitted}}
   }                                      // namespace
   template <typename T>

@github-actions

Copy link
Copy Markdown

🪟 Windows x64 Test Results

  • 56256 tests passed
  • 1532 tests skipped
  • 2 tests failed

Failed Tests

(click on a test name to see its output)

Clang

Clang.CodeGen/AArch64/abi-classify-arg-types.c
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\24\include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c --check-prefixes=CHECK,DARWIN,LONG64
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c'
# 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\AArch64\abi-classify-arg-types.c' --check-prefixes=CHECK,DARWIN,LONG64
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c:112:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_bitint129(ptr nofree noundef align 16 dead_on_return dereferenceable(32) %{{.*}})
# |           ^
# | <stdin>:186:44: note: scanning from here
# | define void @arg_bitint128(i128 noundef %x) #0 {
# |                                            ^
# | <stdin>:194:1: note: possible intended match here
# | define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            181:  store i128 %storedv, ptr %x.addr, align 16 
# |            182:  ret void 
# |            183: } 
# |            184:  
# |            185: ; Function Attrs: noinline nounwind optnone 
# |            186: define void @arg_bitint128(i128 noundef %x) #0 { 
# | check:112'0                                               {        search range start (exclusive)
# | check:112'1                                                        error: no match found in search range
# |            187: entry: 
# |            188:  %x.addr = alloca i128, align 16 
# |            189:  store i128 %x, ptr %x.addr, align 16 
# |            190:  ret void 
# |            191: } 
# |            192:  
# |            193: ; Function Attrs: noinline nounwind optnone 
# |            194: define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 { 
# | check:112'2     ?                                                                                                       possible intended match
# |            195: entry: 
# |            196:  %x.addr = alloca i256, align 16 
# |            197:  %1 = load i256, ptr %0, align 16 
# |            198:  %x = trunc i256 %1 to i129 
# |            199:  %storedv = sext i129 %x to i256 
# |            200:  store i256 %storedv, ptr %x.addr, align 16 
# |            201:  ret void 
# |            202: } 
# |            203:  
# |            204: attributes #0 = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
# |            205:  
# |            206: !llvm.ident = !{!0} 
# |            207:  
# |            208: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project ae65e67c68493a36a7ff73b281ceaf299381b780)"} 
# | check:112'3                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

Clang.CodeGen/AArch64/abi-classify-arg-types.cpp
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\24\include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.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\24\include' -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.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\CodeGen\AArch64\abi-classify-arg-types.cpp'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp:39:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_nontrivial_copy(ptr nofree noundef align 4 dead_on_return dereferenceable(4) %{{.*}})
# |           ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp'
# | ^
# | <stdin>:7:1: note: possible intended match here
# | define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\abi-classify-arg-types.cpp' 
# | check:39'0    {                                                                                                          search range start (exclusive)
# | check:39'1                                                                                                               error: no match found in search range
# |             2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\clang\\test\\CodeGen\\AArch64\\abi-classify-arg-types.cpp" 
# |             3: target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32" 
# |             4: target triple = "arm64-apple-ios7.0" 
# |             5:  
# |             6: ; Function Attrs: mustprogress noinline nounwind optnone 
# |             7: define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 { 
# | check:39'2     ?                                                                                                           possible intended match
# |             8: entry: 
# |             9:  %a.indirect_addr = alloca ptr, align 8 
# |            10:  store ptr %a, ptr %a.indirect_addr, align 8 
# |            11:  ret void 
# |            12: } 
# |             .
# |             .
# |             .
# |            29:  
# |            30: attributes #0 = { mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
# |            31:  
# |            32: !llvm.ident = !{!0} 
# |            33:  
# |            34: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project ae65e67c68493a36a7ff73b281ceaf299381b780)"} 
# | check:39'3                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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.

@github-actions

Copy link
Copy Markdown

🐧 Linux x64 Test Results

  • 91064 tests passed
  • 1826 tests skipped
  • 5 tests failed

Failed Tests

(click on a test name to see its output)

Clang

Clang.Analysis/Scalable/source-edit-generation/coexistence.cpp (Likely Already Failing) This test is already failing at the base commit.
Exception during script execution:
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 32, in evaluate
    return parser.parseAll()
           ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 151, in parseAll
    self.token = next(self.tokens)
                 ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 62, in tokenize
    raise ValueError("couldn't parse text: %r" % string)
ValueError: couldn't parse text: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 439, in getUnsupportedFeatures
    if BooleanExpression.evaluate(item, features)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 34, in evaluate
    raise ValueError(str(e) + ("\nin expression: %r" % string))
ValueError: couldn't parse text: '*'
in expression: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/worker.py", line 90, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/formats/shtest.py", line 38, in execute
    return lit.TestRunner.executeShTest(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2284, in executeShTest
    parsed = parseIntegratedTestScript(test, require_script=not script)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2143, in parseIntegratedTestScript
    unsupported_features = test.getUnsupportedFeatures()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 442, in getUnsupportedFeatures
    raise ValueError("Error in UNSUPPORTED list:\n%s" % str(e))
ValueError: Error in UNSUPPORTED list:
couldn't parse text: '*'
in expression: '*'


Clang.Analysis/Scalable/source-edit-generation/happy-path.cpp (Likely Already Failing) This test is already failing at the base commit.
Exception during script execution:
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 32, in evaluate
    return parser.parseAll()
           ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 151, in parseAll
    self.token = next(self.tokens)
                 ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 62, in tokenize
    raise ValueError("couldn't parse text: %r" % string)
ValueError: couldn't parse text: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 439, in getUnsupportedFeatures
    if BooleanExpression.evaluate(item, features)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 34, in evaluate
    raise ValueError(str(e) + ("\nin expression: %r" % string))
ValueError: couldn't parse text: '*'
in expression: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/worker.py", line 90, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/formats/shtest.py", line 38, in execute
    return lit.TestRunner.executeShTest(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2284, in executeShTest
    parsed = parseIntegratedTestScript(test, require_script=not script)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2143, in parseIntegratedTestScript
    unsupported_features = test.getUnsupportedFeatures()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 442, in getUnsupportedFeatures
    raise ValueError("Error in UNSUPPORTED list:\n%s" % str(e))
ValueError: Error in UNSUPPORTED list:
couldn't parse text: '*'
in expression: '*'


Clang.Analysis/Scalable/source-edit-generation/write-failure.cpp (Likely Already Failing) This test is already failing at the base commit.
Exception during script execution:
Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 32, in evaluate
    return parser.parseAll()
           ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 151, in parseAll
    self.token = next(self.tokens)
                 ^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 62, in tokenize
    raise ValueError("couldn't parse text: %r" % string)
ValueError: couldn't parse text: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 439, in getUnsupportedFeatures
    if BooleanExpression.evaluate(item, features)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/BooleanExpression.py", line 34, in evaluate
    raise ValueError(str(e) + ("\nin expression: %r" % string))
ValueError: couldn't parse text: '*'
in expression: '*'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/worker.py", line 90, in _execute_test_handle_errors
    result = test.config.test_format.execute(test, lit_config)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/formats/shtest.py", line 38, in execute
    return lit.TestRunner.executeShTest(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2284, in executeShTest
    parsed = parseIntegratedTestScript(test, require_script=not script)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/TestRunner.py", line 2143, in parseIntegratedTestScript
    unsupported_features = test.getUnsupportedFeatures()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/lit/lit/Test.py", line 442, in getUnsupportedFeatures
    raise ValueError("Error in UNSUPPORTED list:\n%s" % str(e))
ValueError: Error in UNSUPPORTED list:
couldn't parse text: '*'
in expression: '*'


Clang.CodeGen/AArch64/abi-classify-arg-types.c
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.c | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.c --check-prefixes=CHECK,DARWIN,LONG64
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -fenable-matrix -fexperimental-max-bitint-width=1024 -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.c
# 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/clang/test/CodeGen/AArch64/abi-classify-arg-types.c --check-prefixes=CHECK,DARWIN,LONG64
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.c:112:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_bitint129(ptr nofree noundef align 16 dead_on_return dereferenceable(32) %{{.*}})
# |           ^
# | <stdin>:186:44: note: scanning from here
# | define void @arg_bitint128(i128 noundef %x) #0 {
# |                                            ^
# | <stdin>:194:1: note: possible intended match here
# | define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |            181:  store i128 %storedv, ptr %x.addr, align 16 
# |            182:  ret void 
# |            183: } 
# |            184:  
# |            185: ; Function Attrs: noinline nounwind optnone 
# |            186: define void @arg_bitint128(i128 noundef %x) #0 { 
# | check:112'0                                               {        search range start (exclusive)
# | check:112'1                                                        error: no match found in search range
# |            187: entry: 
# |            188:  %x.addr = alloca i128, align 16 
# |            189:  store i128 %x, ptr %x.addr, align 16 
# |            190:  ret void 
# |            191: } 
# |            192:  
# |            193: ; Function Attrs: noinline nounwind optnone 
# |            194: define void @arg_bitint129(ptr nofreeobj noundef align 16 dead_on_return dereferenceable(32) %0) #0 { 
# | check:112'2     ?                                                                                                       possible intended match
# |            195: entry: 
# |            196:  %x.addr = alloca i256, align 16 
# |            197:  %1 = load i256, ptr %0, align 16 
# |            198:  %x = trunc i256 %1 to i129 
# |            199:  %storedv = sext i129 %x to i256 
# |            200:  store i256 %storedv, ptr %x.addr, align 16 
# |            201:  ret void 
# |            202: } 
# |            203:  
# |            204: attributes #0 = { noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
# |            205:  
# |            206: !llvm.ident = !{!0} 
# |            207:  
# |            208: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project ae65e67c68493a36a7ff73b281ceaf299381b780)"} 
# | check:112'3                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

Clang.CodeGen/AArch64/abi-classify-arg-types.cpp
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/24/include -nostdsysteminc -triple arm64-apple-ios7.0 -target-abi darwinpcs -emit-llvm -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp
# 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/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp:39:11: error: CHECK: expected string not found in input
# | // CHECK: define{{.*}} void @arg_nontrivial_copy(ptr nofree noundef align 4 dead_on_return dereferenceable(4) %{{.*}})
# |           ^
# | <stdin>:1:1: note: scanning from here
# | ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp'
# | ^
# | <stdin>:7:1: note: possible intended match here
# | define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 {
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             1: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp' 
# | check:39'0    {                                                                                                                                search range start (exclusive)
# | check:39'1                                                                                                                                     error: no match found in search range
# |             2: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/AArch64/abi-classify-arg-types.cpp" 
# |             3: target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-n32:64-S128-Fn32" 
# |             4: target triple = "arm64-apple-ios7.0" 
# |             5:  
# |             6: ; Function Attrs: mustprogress noinline nounwind optnone 
# |             7: define void @arg_nontrivial_copy(ptr nofreeobj noundef align 4 dead_on_return dereferenceable(4) %a) #0 { 
# | check:39'2     ?                                                                                                           possible intended match
# |             8: entry: 
# |             9:  %a.indirect_addr = alloca ptr, align 8 
# |            10:  store ptr %a, ptr %a.indirect_addr, align 8 
# |            11:  ret void 
# |            12: } 
# |             .
# |             .
# |             .
# |            29:  
# |            30: attributes #0 = { mustprogress noinline nounwind optnone "no-trapping-math"="true" "stack-protector-buffer-size"="8" } 
# |            31:  
# |            32: !llvm.ident = !{!0} 
# |            33:  
# |            34: !0 = !{!"clang version 24.0.0git (https://github.com/llvm/llvm-project ae65e67c68493a36a7ff73b281ceaf299381b780)"} 
# | check:39'3                                                                                                                        } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

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.

@Fznamznon Fznamznon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think most of problems reported in the PR are actually fixed though, however if there are false positives, I agree that it makes sense to revert due to release.

AFAIK CI fails are unrelated

@@ -238,11 +225,6 @@ features cannot lower the translation-unit ABI level;

- More consistent rendering of Unicode characters in diagnostic messages.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm confused, the patch went to 23, but the release note is still in main? Did we not clear release notes yet?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we actually tagged the release yet? We might have a few more hours. Time to land reflection

@cor3ntin
cor3ntin merged commit 8710728 into llvm:main Aug 25, 2026
10 of 14 checks passed
@github-project-automation github-project-automation Bot moved this from Needs Triage to Done in LLVM Release Status Aug 25, 2026
@cor3ntin

Copy link
Copy Markdown
Contributor Author

/cherry-pick 8710728

@llvmbot

llvmbot commented Aug 25, 2026

Copy link
Copy Markdown
Member

@cor3ntin

Copy link
Copy Markdown
Contributor Author

/cherry-pick 8710728

@llvmbot

llvmbot commented Aug 25, 2026

Copy link
Copy Markdown
Member

/pull-request #218678

tru pushed a commit that referenced this pull request Aug 26, 2026
…" (#218638)

This reverts commit 1529d35.

There are two issues:
- The change appear fairly disruptive so close to release (see comments
on #208001)
 - there are false positives (see #218429)

(cherry picked from commit 8710728)
wlemkows pushed a commit to wlemkows/llvm-project that referenced this pull request Sep 4, 2026
…08001)" (llvm#218638)

This reverts commit 1529d35.

There are two issues:
- The change appear fairly disruptive so close to release (see comments
on llvm#208001)
 - there are false positives (see llvm#218429)
pull Bot pushed a commit to SammyEnigma/carbon-lang that referenced this pull request Sep 10, 2026
This is firing on some of our _used_ templates in eval.cpp in clang-tidy
24

It was coming to `-Wall` for clang as well
(llvm/llvm-project#202945) but was reverted
due to issues like false positives
(llvm/llvm-project#218638). Some fixes were
applied to try enable in `-Wall` in clang 23
(llvm/llvm-project#222336) but it still remains
disabled by default for clang.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clang:frontend Language frontend issues, e.g. anything involving "Sema" clang Clang issues not falling into any other category

Projects

Development

Successfully merging this pull request may close these issues.

3 participants