This patch fixes these errors while building BOLT.
authorSriraman Tallam <tmsriram@google.com>
Tue, 2 Aug 2022 18:21:36 +0000 (11:21 -0700)
committerSriraman Tallam <tmsriram@google.com>
Tue, 2 Aug 2022 18:23:37 +0000 (11:23 -0700)
commit3e43d0cde7193599631799f54fa915efc141e4b0
tree0be859e5530112764b8d8bac34b93e0505e0c886
parent29fbe600091d89134cd998d02b0e9d7a4a6115b3
This patch fixes these errors while building BOLT.

Compiling llvm/llvm-project/bolt/include/bolt/Passes/RegReAssign.h failed:
...: error: invalid application of 'sizeof' to an incomplete type 'llvm::bolt::BinaryFunctionCallGraph'

static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type");
error: type 'llvm::bolt::BinaryBasicBlock *' cannot be used prior to '::' because it has no members

using NodeRef = typename GraphType::UnknownGraphTypeError;
BinaryDomTree.h:31:14: error: no template named 'DomTreeGraphTraitsBase'

: public DomTreeGraphTraitsBase<bolt::BinaryDomTreeNode,

Differential Revision: https://reviews.llvm.org/D130402
bolt/include/bolt/Core/BinaryDomTree.h
bolt/include/bolt/Passes/RegReAssign.h
utils/bazel/llvm-project-overlay/bolt/BUILD.bazel