Skip to content

Commit d2386ab

Browse files
committed
Using make_unique instead of new (NFC)
Fix a clang-tidy warning.
1 parent dc5e1d0 commit d2386ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class DeserializationTest : public ::testing::Test {
3939
// Register a diagnostic handler to capture the diagnostic so that we can
4040
// check it later.
4141
context.getDiagEngine().registerHandler([&](Diagnostic &diag) {
42-
diagnostic.reset(new Diagnostic(std::move(diag)));
42+
diagnostic = std::make_unique<Diagnostic>(std::move(diag));
4343
});
4444
}
4545

0 commit comments

Comments
 (0)