Author: Jinsong Ji Date: 2026-10-24T10:49:57-04:00 New Revision: 3f3566ce38398eb8c54dffd6a1f5c0b31d45ae83
URL: https://github.com/llvm/llvm-project/commit/3f3566ce38398eb8c54dffd6a1f5c0b31d45ae83 DIFF: https://github.com/llvm/llvm-project/commit/3f3566ce38398eb8c54dffd6a1f5c0b31d45ae83.diff LOG: [Test][clang-repl]Keep value names in clang-repl pragma-optimize.cpp (#235305) The test added by aa6e40c073e6 checks for named values (entry:, %x.addr, %x), which only appear when clang keeps value names. That is the default in assertion builds, but non-assertion CI builds discard them, so the CHECK-NEXT: entry: line fails. Pass -fno-discard-value-names explicitly. Assisted-By: Claude Opus 5.5 Added: Modified: clang/test/Interpreter/pragma-optimize.cpp Removed: ################################################################################ diff --git a/clang/test/Interpreter/pragma-optimize.cpp b/clang/test/Interpreter/pragma-optimize.cpp index 1d43c54e8edb42..580901117da51a 100644 --- a/clang/test/Interpreter/pragma-optimize.cpp +++ b/clang/test/Interpreter/pragma-optimize.cpp @@ -3,7 +3,8 @@ // '#pragma clang repl optimize(<opt>)' sets the optimization level and size for // input parsed after it; <opt> is an -O flag spelled without the leading dash. // -// RUN: cat %s | clang-repl -Xcc -Xclang -Xcc -emit-llvm | FileCheck %s +// RUN: cat %s | clang-repl -Xcc -fno-discard-value-names -Xcc -Xclang -Xcc -emit-llvm \ +// RUN: | FileCheck %s extern "C" int f_o0(int x) { return x; } // CHECK: ; Function Attrs: {{.*}}noinline {{.*}}optnone _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
