[clang] [KeyInstr][Clang] For range stmt atoms (PR #134647)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 3 15:13:08 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `clang` at step 6 "test-build-unified-tree-check-clang".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/29238

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-clang) failure: test (failure)
******************** TEST 'Clang :: CoverageMapping/terminate-statements.cpp' FAILED ********************
Exit Code: 2

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/21/include -nostdsysteminc -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fexceptions -fcxx-exceptions -emit-llvm-only -triple x86_64-unknown-linux-gnu -main-file-name terminate-statements.cpp -I /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/Inputs /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp # RUN: at line 1
+ /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/21/include -nostdsysteminc -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fexceptions -fcxx-exceptions -emit-llvm-only -triple x86_64-unknown-linux-gnu -main-file-name terminate-statements.cpp -I /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/Inputs /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /b/1/llvm-x86_64-debian-dylib/build/bin/clang -cc1 -internal-isystem /b/1/llvm-x86_64-debian-dylib/build/lib/clang/21/include -nostdsysteminc -mllvm -emptyline-comment-coverage=false -fprofile-instrument=clang -fcoverage-mapping -dump-coverage-mapping -fexceptions -fcxx-exceptions -emit-llvm-only -triple x86_64-unknown-linux-gnu -main-file-name terminate-statements.cpp -I /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/Inputs /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp
1.	/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp:45:1: current parser token 'int'
2.	/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp:37:5: LLVM IR generation of declaration 'f6'
3.	/b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp:37:5: Generating code for declaration 'f6'
 #0 0x00007f5b89962477 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/b/1/llvm-x86_64-debian-dylib/build/lib/libLLVM.so.21.0git+0x100d477)
 #1 0x00007f5b8995ff2e llvm::sys::RunSignalHandlers() (/b/1/llvm-x86_64-debian-dylib/build/lib/libLLVM.so.21.0git+0x100af2e)
 #2 0x00007f5b89962b9a SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
 #3 0x00007f5b97a21140 __restore_rt (/lib/x86_64-linux-gnu/libpthread.so.0+0x13140)
 #4 0x00007f5b95556731 clang::CodeGen::CodeGenFunction::EmitCXXForRangeStmt(clang::CXXForRangeStmt const&, llvm::ArrayRef<clang::Attr const*>) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x24fa731)
 #5 0x00007f5b95549671 clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*, llvm::ArrayRef<clang::Attr const*>) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x24ed671)
 #6 0x00007f5b95557dcc clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x24fbdcc)
 #7 0x00007f5b955d3e10 clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x2577e10)
 #8 0x00007f5b955ff1d6 clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x25a31d6)
 #9 0x00007f5b955f6771 clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x259a771)
#10 0x00007f5b955fb7a2 clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x259f7a2)
#11 0x00007f5b955f5137 clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x2599137)
#12 0x00007f5b956b192d (anonymous namespace)::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) ModuleBuilder.cpp:0:0
#13 0x00007f5b955be966 clang::BackendConsumer::HandleTopLevelDecl(clang::DeclGroupRef) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x2562966)
#14 0x00007f5b93b70035 clang::ParseAST(clang::Sema&, bool, bool) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0xb14035)
#15 0x00007f5b95fd3fe6 clang::FrontendAction::Execute() (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x2f77fe6)
#16 0x00007f5b95f40e62 clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x2ee4e62)
#17 0x00007f5b96074890 clang::ExecuteCompilerInvocation(clang::CompilerInstance*) (/b/1/llvm-x86_64-debian-dylib/build/lib/libclang-cpp.so.21.0git+0x3018890)
#18 0x0000000000412ff8 cc1_main(llvm::ArrayRef<char const*>, char const*, void*) (/b/1/llvm-x86_64-debian-dylib/build/bin/clang+0x412ff8)
#19 0x000000000040f450 ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) driver.cpp:0:0
#20 0x000000000040eacd clang_main(int, char**, llvm::ToolContext const&) (/b/1/llvm-x86_64-debian-dylib/build/bin/clang+0x40eacd)
#21 0x000000000041f297 main (/b/1/llvm-x86_64-debian-dylib/build/bin/clang+0x41f297)
#22 0x00007f5b88477d7a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x23d7a)
#23 0x000000000040ccca _start (/b/1/llvm-x86_64-debian-dylib/build/bin/clang+0x40ccca)
FileCheck error: '<stdin>' is empty.
FileCheck command line:  /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/clang/test/CoverageMapping/terminate-statements.cpp

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/134647


More information about the cfe-commits mailing list