mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 19:08:30 +00:00
c7281d14f7
Make Obj public in llvm's IntrusiveRefCntPtr This fixes NixOs/nixpkgs#15974 It's not a nice fix, as it's really clang's problem. The proper fix should modify clang's usage of IntrusiveRefCntPtr.
16 lines
495 B
Diff
16 lines
495 B
Diff
diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h b/include/llvm/ADT/IntrusiveRefCntPtr.h
|
|
index f9df378..9d860ec 100644
|
|
--- a/include/llvm/ADT/IntrusiveRefCntPtr.h
|
|
+++ b/include/llvm/ADT/IntrusiveRefCntPtr.h
|
|
@@ -134,9 +134,9 @@ public:
|
|
//===----------------------------------------------------------------------===//
|
|
template <typename T>
|
|
class IntrusiveRefCntPtr {
|
|
+ public:
|
|
T* Obj;
|
|
|
|
- public:
|
|
typedef T element_type;
|
|
|
|
explicit IntrusiveRefCntPtr() : Obj(nullptr) {}
|