Files
gentoo/dev-util/bcc/files/bcc-0.36.1-getUnqual.patch
Holger Hoffstätte 0407cbbfcf dev-util/bcc: add patches for llvm-22 support
All merged upstream, except for the build fix silencing git.

Signed-off-by: Holger Hoffstätte <holger@applied-asynchrony.com>
Part-of: https://github.com/gentoo/gentoo/pull/45976
Closes: https://github.com/gentoo/gentoo/pull/45976
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
2026-04-03 12:07:21 -07:00

23 lines
982 B
Diff

https://github.com/iovisor/bcc/issues/5472
--- bcc/src/cc/bpf_module_rw_engine.cc
+++ bcc/src/cc/bpf_module_rw_engine.cc
@@ -286,7 +286,7 @@ string BPFModule::make_reader(Module *mo
string name = "reader" + std::to_string(readers_.size());
#if LLVM_VERSION_MAJOR >= 18
- vector<Type *> fn_args({B.getPtrTy(), PointerType::getUnqual(type)});
+ vector<Type *> fn_args({B.getPtrTy(), PointerType::getUnqual(type->getContext())});
#else
vector<Type *> fn_args({B.getInt8PtrTy(), PointerType::getUnqual(type)});
#endif
@@ -354,7 +354,7 @@ string BPFModule::make_writer(Module *mo
string name = "writer" + std::to_string(writers_.size());
#if LLVM_VERSION_MAJOR >= 18
- vector<Type *> fn_args({B.getPtrTy(), B.getInt64Ty(), PointerType::getUnqual(type)});
+ vector<Type *> fn_args({B.getPtrTy(), B.getInt64Ty(), PointerType::getUnqual(type->getContext())});
#else
vector<Type *> fn_args({B.getInt8PtrTy(), B.getInt64Ty(), PointerType::getUnqual(type)});
#endif