Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix llvm20 compilation error (#5194)
The following is the error message: /home/yhs/work/bcc/src/cc/frontends/clang/b_frontend_action.cc: In member function ‘bool ebpf::BTypeVisitor::VisitBinaryOperator(clang::BinaryOperator*)’: /home/yhs/work/bcc/src/cc/frontends/clang/b_frontend_action.cc:1383:64: error: no matching function for call to ‘clang::FieldDecl::getBitWidthValue(clang::ASTContext&)’ 1383 | uint64_t sz = F->isBitField() ? F->getBitWidthValue(C) : C.getTypeSize(F->getType()); | ~~~~~~~~~~~~~~~~~~~^~~ which is due to upstream patch: llvm/llvm-project#122289 This patch fixed the above compilation error. Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
- Loading branch information