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.
15 lines
495 B
Diff
15 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) {}
|