aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/AST/CommentTextTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/unittests/AST/CommentTextTest.cpp')
-rw-r--r--clang/unittests/AST/CommentTextTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/AST/CommentTextTest.cpp b/clang/unittests/AST/CommentTextTest.cpp
index 84ec51a..675173c 100644
--- a/clang/unittests/AST/CommentTextTest.cpp
+++ b/clang/unittests/AST/CommentTextTest.cpp
@@ -44,7 +44,7 @@ protected:
// shouldn't matter.
RawComment Comment(SourceMgr, CommentRange, EmptyOpts, /*Merged=*/true);
DiagnosticOptions DiagOpts;
- DiagnosticsEngine Diags(new DiagnosticIDs, DiagOpts);
+ DiagnosticsEngine Diags(DiagnosticIDs::create(), DiagOpts);
return Comment.getFormattedText(SourceMgr, Diags);
}
};