diff options
Diffstat (limited to 'unittests/StaticAnalyzer/SymbolReaperTest.cpp')
-rw-r--r-- | unittests/StaticAnalyzer/SymbolReaperTest.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/unittests/StaticAnalyzer/SymbolReaperTest.cpp b/unittests/StaticAnalyzer/SymbolReaperTest.cpp index bd11303e94..bbbf68851a 100644 --- a/unittests/StaticAnalyzer/SymbolReaperTest.cpp +++ b/unittests/StaticAnalyzer/SymbolReaperTest.cpp @@ -61,8 +61,9 @@ public: // Test that marking s.x as live would also make s live. TEST(SymbolReaper, SuperRegionLiveness) { - EXPECT_TRUE(tooling::runToolOnCode(new SuperRegionLivenessAction, - "void foo() { struct S { int x; } s; }")); + EXPECT_TRUE( + tooling::runToolOnCode(std::make_unique<SuperRegionLivenessAction>(), + "void foo() { struct S { int x; } s; }")); } } // namespace |