[clang] [llvm] [DebugInfo] Update DIBuilder insertion to take InsertPosition (PR #126059)

LLVM Continuous Integration via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 10:00:24 PST 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `clang,llvm` at step 6 "test-build-unified-tree-check-all".

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

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

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM-Unit :: Frontend/./LLVMFrontendTests/6/11' FAILED ********************
Script(shard):
--
GTEST_OUTPUT=json:/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/./LLVMFrontendTests-LLVM-Unit-60260-6-11.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=11 GTEST_SHARD_INDEX=6 /Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/./LLVMFrontendTests
--

Note: This is test shard 7 of 11.
[==========] Running 15 tests from 6 test suites.
[----------] Global test environment set-up.
[----------] 1 test from OpenMPContextTest
[ RUN      ] OpenMPContextTest.ApplicabilityAllTraits
[       OK ] OpenMPContextTest.ApplicabilityAllTraits (0 ms)
[----------] 1 test from OpenMPContextTest (0 ms total)

[----------] 8 tests from OpenMPIRBuilderTest
[ RUN      ] OpenMPIRBuilderTest.ParallelIfCond
[       OK ] OpenMPIRBuilderTest.ParallelIfCond (0 ms)
[ RUN      ] OpenMPIRBuilderTest.ApplySimdCustomAligned
[       OK ] OpenMPIRBuilderTest.ApplySimdCustomAligned (0 ms)
[ RUN      ] OpenMPIRBuilderTest.DynamicWorkShareLoopOrdered
[       OK ] OpenMPIRBuilderTest.DynamicWorkShareLoopOrdered (0 ms)
[ RUN      ] OpenMPIRBuilderTest.SingleDirectiveCopyPrivate
[       OK ] OpenMPIRBuilderTest.SingleDirectiveCopyPrivate (0 ms)
[ RUN      ] OpenMPIRBuilderTest.CreateTeams
[       OK ] OpenMPIRBuilderTest.CreateTeams (0 ms)
[ RUN      ] OpenMPIRBuilderTest.CreateSectionsNoWait
[       OK ] OpenMPIRBuilderTest.CreateSectionsNoWait (0 ms)
[ RUN      ] OpenMPIRBuilderTest.TargetRegionDeviceSPMD
Basic Block has trailing DbgRecords!
label %entry
/Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp:6695: Failure
Value of: verifyModule(*M, &errs())
  Actual: true
Expected: false

Assertion failed: (TrailingDbgRecords.empty() && "DbgRecords in blocks not cleaned"), function ~LLVMContextImpl, file LLVMContextImpl.cpp, line 50.
 #0 0x0000000104babac8 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x10052bac8)
 #1 0x0000000104baa040 llvm::sys::RunSignalHandlers() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x10052a040)
 #2 0x0000000104bac2c4 SignalHandler(int, __siginfo*, void*) (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x10052c2c4)
 #3 0x0000000185882584 (/usr/lib/system/libsystem_platform.dylib+0x18047a584)
 #4 0x0000000185851c20 (/usr/lib/system/libsystem_pthread.dylib+0x180449c20)
 #5 0x000000018575ea30 (/usr/lib/system/libsystem_c.dylib+0x180356a30)
 #6 0x000000018575dd20 (/usr/lib/system/libsystem_c.dylib+0x180355d20)
 #7 0x0000000104e99620 llvm::ConstantUniqueMap<llvm::ConstantExpr>::freeConstants() (.cold.1) (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x100819620)
 #8 0x0000000104a32bd4 llvm::LLVMContextImpl::~LLVMContextImpl() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x1003b2bd4)
 #9 0x0000000104a2bea4 llvm::LLVMContext::~LLVMContext() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x1003abea4)
#10 0x0000000104742dc0 (anonymous namespace)::OpenMPIRBuilderTest_TargetRegionDeviceSPMD_Test::~OpenMPIRBuilderTest_TargetRegionDeviceSPMD_Test() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x1000c2dc0)
#11 0x0000000104bf329c testing::TestInfo::Run() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x10057329c)
#12 0x0000000104bf3e88 testing::TestSuite::Run() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x100573e88)
#13 0x0000000104c02338 testing::internal::UnitTestImpl::RunAllTests() (/Users/buildbot/buildbot-root/aarch64-darwin/build/unittests/Frontend/LLVMFrontendTests+0x100582338)
...

```

</details>

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


More information about the cfe-commits mailing list