Skip to content

bolt fails to build with error: no member named 'getAsReference' #99024

@sylvestre

Description

@sylvestre

On linux Debian bullseye, full log:
https://llvm-jenkins.debian.net/job/llvm-toolchain-bullseye-binaries/architecture=amd64,distribution=bullseye,label=amd64/1342/console

/build/source/bolt/lib/Core/DIEBuilder.cpp:559:34: error: no member named 'getAsReference' in 'llvm::DWARFFormValue'; did you mean 'getAsReferenceUVal'?
  559 |   uint64_t RefOffset = *RefValue.getAsReference();
      |                                  ^~~~~~~~~~~~~~
      |                                  getAsReferenceUVal
/build/source/llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h:122:27: note: 'getAsReferenceUVal' declared here
  122 |   std::optional<uint64_t> getAsReferenceUVal() const;
      |                           ^
/build/source/bolt/lib/Core/DIEBuilder.cpp:610:29: error: no member named 'getAsReference' in 'llvm::DWARFFormValue'; did you mean 'getAsReferenceUVal'?
  610 |   const uint64_t Ref = *Val.getAsReference();
      |                             ^~~~~~~~~~~~~~
      |                             getAsReferenceUVal
/build/source/llvm/include/llvm/DebugInfo/DWARF/DWARFFormValue.h:122:27: note: 'getAsReferenceUVal' declared here
  122 |   std::optional<uint64_t> getAsReferenceUVal() const;
      |                           ^
2 errors generated.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions