[llvm] [NFC] Add fragment-getting functions to DbgRecord (PR #97705)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 8 01:17:44 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `llvm` at step 6 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 6 (build-unified-tree) failure: build (failure)
...
4.739 [5847/18/946] Building AArch64GenO0PreLegalizeGICombiner.inc...
4.806 [5846/18/947] Building AArch64GenMCCodeEmitter.inc...
4.999 [5845/18/948] Building AArch64GenAsmWriter1.inc...
5.039 [5844/18/949] Building AArch64GenAsmWriter.inc...
5.102 [5843/18/950] Building AArch64GenDisassemblerTables.inc...
5.379 [5842/18/951] Building AArch64GenAsmMatcher.inc...
5.434 [5841/18/952] Building ARMGenDAGISel.inc...
5.564 [5840/18/953] Building PPCGenRegisterBank.inc...
5.732 [5839/18/954] Building PPCGenRegisterInfo.inc...
6.468 [5838/18/955] Building CXX object unittests/ADT/CMakeFiles/ADTTests.dir/PostOrderIteratorTest.cpp.o
FAILED: unittests/ADT/CMakeFiles/ADTTests.dir/PostOrderIteratorTest.cpp.o 
/opt/ccache/bin/g++ -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/buildbot-root/abi-test/build/unittests/ADT -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/abi-test/llvm/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/ADT/CMakeFiles/ADTTests.dir/PostOrderIteratorTest.cpp.o -MF unittests/ADT/CMakeFiles/ADTTests.dir/PostOrderIteratorTest.cpp.o.d -o unittests/ADT/CMakeFiles/ADTTests.dir/PostOrderIteratorTest.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/PostOrderIteratorTest.cpp
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/PostOrderIteratorTest.cpp:9:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/DebugProgramInstruction.h: In member function ‘llvm::DbgVariableFragmentInfo llvm::DbgVariableRecord::getFragmentOrEntireVariable() const’:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: invalid use of incomplete type ‘class llvm::DILocalVariable’
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^~
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/TrackingMDRef.h:16,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/DebugLoc.h:17,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/DebugProgramInstruction.h:54,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/PostOrderIteratorTest.cpp:9:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of ‘class llvm::DILocalVariable’
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.h:151:38: note: in definition of macro ‘HANDLE_METADATA’
  151 | #define HANDLE_METADATA(CLASS) class CLASS;
      |                                      ^~~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.def:57:35: note: in expansion of macro ‘HANDLE_METADATA_LEAF’
   57 | #define HANDLE_MDNODE_LEAF(CLASS) HANDLE_METADATA_LEAF(CLASS)
      |                                   ^~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.def:67:47: note: in expansion of macro ‘HANDLE_MDNODE_LEAF’
   67 | #define HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS) HANDLE_MDNODE_LEAF(CLASS)
      |                                               ^~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.def:46:3: note: in expansion of macro ‘HANDLE_SPECIALIZED_MDNODE_LEAF’
   46 |   HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.def:110:1: note: in expansion of macro ‘HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE’
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/ADT/PostOrderIteratorTest.cpp:9:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/DebugProgramInstruction.h:472:21: error: could not convert ‘{<expression error>, 0}’ from ‘<brace-enclosed initializer list>’ to ‘llvm::DbgVariableFragmentInfo’
  472 |       return {*Sz, 0};
      |                     ^
      |                     |
      |                     <brace-enclosed initializer list>
6.523 [5838/17/956] Building AArch64GenPostLegalizeGICombiner.inc...

```

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


More information about the llvm-commits mailing list