mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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>
23 lines
982 B
Diff
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
|