Skip to content

Commit e128d53

Browse files
committed
[lldb/Test] Don't friend std::make_unique
This wasn't a great idea to begin with, as you can't really rely on the implementation, but since it also doesn't work with MSVC I've just made the ctors public.
1 parent 0098324 commit e128d53

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lldb/unittests/Utility/ReproducerInstrumentationTest.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ inline TestInstrumentationData GetTestInstrumentationData() {
7373
}
7474

7575
class TestInstrumentationDataRAII {
76-
private:
76+
public:
7777
TestInstrumentationDataRAII(llvm::raw_string_ostream &os) {
7878
g_registry.emplace();
7979
g_serializer.emplace(os);
@@ -86,12 +86,6 @@ class TestInstrumentationDataRAII {
8686
g_deserializer.emplace(buffer);
8787
}
8888

89-
friend std::unique_ptr<TestInstrumentationDataRAII>
90-
std::make_unique<TestInstrumentationDataRAII>(llvm::raw_string_ostream &os);
91-
friend std::unique_ptr<TestInstrumentationDataRAII>
92-
std::make_unique<TestInstrumentationDataRAII>(llvm::StringRef &buffer);
93-
94-
public:
9589
~TestInstrumentationDataRAII() { Reset(); }
9690

9791
void Reset() {

0 commit comments

Comments
 (0)