[llvm] [DebugInfo][InstrRef] Index DebugVariables and some DILocations (PR #99318)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 18 07:08:59 PDT 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 6 "test-build-unified-tree-check-llvm".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/1893
Here is the relevant piece of the build log for the reference:
```
Step 6 (test-build-unified-tree-check-llvm) failure: test (failure)
...
0.847 [2/10/642] Linking CXX executable unittests/tools/llvm-mca/LLVMMCATests
0.857 [2/9/643] Linking CXX executable unittests/DebugInfo/DWARF/DebugInfoDWARFTests
0.871 [2/8/644] Linking CXX executable unittests/ExecutionEngine/Orc/OrcJITTests
0.892 [2/7/645] Linking CXX executable unittests/tools/llvm-exegesis/LLVMExegesisTests
0.948 [2/6/646] Linking CXX executable unittests/Frontend/LLVMFrontendTests
0.994 [2/5/647] Linking CXX executable unittests/Analysis/AnalysisTests
1.075 [2/4/648] Linking CXX executable unittests/IR/IRTests
1.204 [2/3/649] Linking CXX executable unittests/ADT/ADTTests
1.237 [2/2/650] Linking CXX executable unittests/Support/SupportTests
9.617 [2/1/651] Building CXX object unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o
FAILED: unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/bin/c++ -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/unittests/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googletest/include -I/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/third-party/unittest/googlemock/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o -MF unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o.d -o unittests/CodeGen/CMakeFiles/CodeGenTests.dir/InstrRefLDVTest.cpp.o -c /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp: In member function ‘void InstrRefLDVTest::buildVLocValueMap(const llvm::DILocation*, const llvm::SmallSet<llvm::DebugVariable, 4>&, llvm::SmallPtrSetImpl<llvm::MachineBasicBlock*>&, LiveDebugValues::InstrRefBasedLDV::LiveInsT&, LiveDebugValues::FuncValueTable&, LiveDebugValues::FuncValueTable&, llvm::SmallVectorImpl<LiveDebugValues::VLocTracker>&)’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:224:35: error: cannot convert ‘const llvm::SmallSet<llvm::DebugVariable, 4>’ to ‘const llvm::SmallSet<unsigned int, 4>&’
224 | LDV->buildVLocValueMap(DILoc, VarsWeCareAbout, AssignBlocks, Output,
| ^~~~~~~~~~~~~~~
| |
| const llvm::SmallSet<llvm::DebugVariable, 4>
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:27:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1437:62: note: initializing argument 2 of ‘void LiveDebugValues::InstrRefBasedLDV::buildVLocValueMap(const llvm::DILocation*, const llvm::SmallSet<unsigned int, 4>&, llvm::SmallPtrSetImpl<llvm::MachineBasicBlock*>&, LiveDebugValues::InstrRefBasedLDV::LiveInsT&, LiveDebugValues::FuncValueTable&, LiveDebugValues::FuncValueTable&, llvm::SmallVectorImpl<LiveDebugValues::VLocTracker>&)’
1437 | const SmallSet<DebugVariableID, 4> &VarsWeCareAbout,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp: In member function ‘virtual void InstrRefLDVTest_VLocSingleBlock_Test::TestBody()’:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:2649:50: error: no matching function for call to ‘LiveDebugValues::VLocTracker::VLocTracker(LiveDebugValues::OverlapMap&, llvm::DIExpression*&)’
2649 | VLocs.resize(1, VLocTracker(Overlaps, EmptyExpr));
| ^
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:27:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1062:3: note: candidate: ‘LiveDebugValues::VLocTracker::VLocTracker(LiveDebugValues::DebugVariableMap&, const OverlapMap&, const llvm::DIExpression*)’
1062 | VLocTracker(DebugVariableMap &DVMap, const OverlapMap &O,
| ^~~~~~~~~~~
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1062:3: note: candidate expects 3 arguments, 2 provided
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1042:7: note: candidate: ‘LiveDebugValues::VLocTracker::VLocTracker(const LiveDebugValues::VLocTracker&)’
1042 | class VLocTracker {
| ^~~~~~~~~~~
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1042:7: note: candidate expects 1 argument, 2 provided
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1042:7: note: candidate: ‘LiveDebugValues::VLocTracker::VLocTracker(LiveDebugValues::VLocTracker&&)’
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/../lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.h:1042:7: note: candidate expects 1 argument, 2 provided
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:2661:23: error: no matching function for call to ‘llvm::MapVector<unsigned int, LiveDebugValues::DbgValue>::insert(<brace-enclosed initializer list>)’
2661 | VLocs[0].Vars.insert({Var, DbgValue(LiveInRspID, EmptyProps)});
| ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/MC/MCDwarf.h:17,
from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/MC/MCContext.h:21,
from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/CodeGen/MachineModuleInfo.h:36,
from /home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/unittests/CodeGen/InstrRefLDVTest.cpp:11:
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/ADT/MapVector.h:141:29: note: candidate: ‘std::pair<typename VectorType::iterator, bool> llvm::MapVector<KeyT, ValueT, MapType, VectorType>::insert(const std::pair<_T1, _T2>&) [with KeyT = unsigned int; ValueT = LiveDebugValues::DbgValue; MapType = llvm::DenseMap<unsigned int, unsigned int>; VectorType = llvm::SmallVector<std::pair<unsigned int, LiveDebugValues::DbgValue>, 0>; typename VectorType::iterator = std::pair<unsigned int, LiveDebugValues::DbgValue>*]’
141 | std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
| ^~~~~~
/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/llvm-project/llvm/include/llvm/ADT/MapVector.h:141:67: note: no known conversion for argument 1 from ‘<brace-enclosed initializer list>’ to ‘const std::pair<unsigned int, LiveDebugValues::DbgValue>&’
141 | std::pair<iterator, bool> insert(const std::pair<KeyT, ValueT> &KV) {
```
https://github.com/llvm/llvm-project/pull/99318
More information about the llvm-commits
mailing list