[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:18:42 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `bolt-x86_64-ubuntu-shared` running on `bolt-worker` while building `llvm` at step 5 "build-bolt".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-bolt) failure: build (failure)
0.017 [1033/18/1] Generating VCSRevision.h
1.249 [1029/18/2] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o 
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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib/IR -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Comdat.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/Comdat.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Function.h:27,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Module.h:25,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/Comdat.cpp:19:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h: In member function ‘llvm::DbgVariableFragmentInfo llvm::DbgVariableRecord::getFragmentOrEntireVariable() const’:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/TrackingMDRef.h:16,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/DebugLoc.h:17,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:54,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Function.h:27,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Module.h:25,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/Comdat.cpp:19:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of ‘class llvm::DILocalVariable’
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Metadata.h:151:38: note: in definition of macro ‘HANDLE_METADATA’
  151 | #define HANDLE_METADATA(CLASS) class CLASS;
      |                                      ^~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Metadata.def:46:3: note: in expansion of macro ‘HANDLE_SPECIALIZED_MDNODE_LEAF’
   46 |   HANDLE_SPECIALIZED_MDNODE_LEAF(CLASS)
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Function.h:27,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/Module.h:25,
                 from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/Comdat.cpp:19:
/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/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>
1.341 [1029/17/3] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o 
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/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/lib/IR -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/build/include -I/home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/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 -fPIC  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o -c /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/lib/IR/ConstantRange.cpp
In file included from /home/worker/bolt-worker2/bolt-x86_64-ubuntu-shared/llvm-project/llvm/include/llvm/IR/BasicBlock.h:23,

```

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


More information about the llvm-commits mailing list