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


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-out-of-tree` running on `linaro-flang-aarch64-out-of-tree` while building `llvm` at step 5 "build-unified-tree".

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

Here is the relevant piece of the build log for the reference:
```
Step 5 (build-unified-tree) failure: build (failure)
0.058 [1660/4/1] Generating VCSRevision.h
2.567 [1629/34/2] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o 
/usr/local/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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/Assumptions.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR/Assumptions.cpp
In file included from ../llvm-project/llvm/lib/IR/Assumptions.cpp:18:
In file included from ../llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^
../llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^
1 error generated.
2.867 [1629/33/3] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/ConstantRange.cpp.o 
/usr/local/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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR/ConstantRange.cpp
In file included from ../llvm-project/llvm/lib/IR/ConstantRange.cpp:25:
In file included from ../llvm-project/llvm/include/llvm/IR/ConstantRange.h:35:
In file included from ../llvm-project/llvm/include/llvm/IR/InstrTypes.h:28:
In file included from ../llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^
../llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^
1 error generated.
3.580 [1629/32/4] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o 
/usr/local/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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/AbstractCallSite.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR/AbstractCallSite.cpp
In file included from ../llvm-project/llvm/lib/IR/AbstractCallSite.cpp:17:
In file included from ../llvm-project/llvm/include/llvm/IR/AbstractCallSite.h:17:
In file included from ../llvm-project/llvm/include/llvm/IR/Constants.h:29:
In file included from ../llvm-project/llvm/include/llvm/IR/ConstantRange.h:35:
In file included from ../llvm-project/llvm/include/llvm/IR/InstrTypes.h:28:
In file included from ../llvm-project/llvm/include/llvm/IR/Function.h:27:
In file included from ../llvm-project/llvm/include/llvm/IR/BasicBlock.h:23:
../llvm-project/llvm/include/llvm/IR/DebugProgramInstruction.h:471:32: error: member access into incomplete type 'DILocalVariable'
  471 |     if (auto Sz = getVariable()->getSizeInBits())
      |                                ^
../llvm-project/llvm/include/llvm/IR/Metadata.def:110:42: note: forward declaration of 'llvm::DILocalVariable'
  110 | HANDLE_SPECIALIZED_MDNODE_LEAF_UNIQUABLE(DILocalVariable)
      |                                          ^
1 error generated.
3.615 [1629/31/5] Building CXX object lib/IR/CMakeFiles/LLVMCore.dir/ConstantRangeList.cpp.o
FAILED: lib/IR/CMakeFiles/LLVMCore.dir/ConstantRangeList.cpp.o 
/usr/local/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/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/build_llvm/include -I/home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/IR/CMakeFiles/LLVMCore.dir/ConstantRangeList.cpp.o -MF lib/IR/CMakeFiles/LLVMCore.dir/ConstantRangeList.cpp.o.d -o lib/IR/CMakeFiles/LLVMCore.dir/ConstantRangeList.cpp.o -c /home/tcwg-buildbot/worker/flang-aarch64-out-of-tree/llvm-project/llvm/lib/IR/ConstantRangeList.cpp
In file included from ../llvm-project/llvm/lib/IR/ConstantRangeList.cpp:9:

```

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


More information about the llvm-commits mailing list