Using make_unique instead of `new` (NFC)
Fix a clang-tidy warning.
GitOrigin-RevId: d2386ab6adc2b5c4adc4302af3ffc6c14d46fa37
diff --git a/unittests/Dialect/SPIRV/DeserializationTest.cpp b/unittests/Dialect/SPIRV/DeserializationTest.cpp
index 4f2c5d5..499c330 100644
--- a/unittests/Dialect/SPIRV/DeserializationTest.cpp
+++ b/unittests/Dialect/SPIRV/DeserializationTest.cpp
@@ -39,7 +39,7 @@
// Register a diagnostic handler to capture the diagnostic so that we can
// check it later.
context.getDiagEngine().registerHandler([&](Diagnostic &diag) {
- diagnostic.reset(new Diagnostic(std::move(diag)));
+ diagnostic = std::make_unique<Diagnostic>(std::move(diag));
});
}