diff options
author | Jan Svoboda <jan_svoboda@apple.com> | 2025-05-22 13:51:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-22 13:51:20 -0700 |
commit | 3ea2cec7324e1e4569cd15b9e6cb1a4a6e8aa521 (patch) | |
tree | cba3a570eb827be307a328ba94f6a348443f5019 /flang/unittests/Frontend/CodeGenActionTest.cpp | |
parent | 45d8759cbed0f216786729718608a8be72a505c6 (diff) | |
download | llvm-3ea2cec7324e1e4569cd15b9e6cb1a4a6e8aa521.zip llvm-3ea2cec7324e1e4569cd15b9e6cb1a4a6e8aa521.tar.gz llvm-3ea2cec7324e1e4569cd15b9e6cb1a4a6e8aa521.tar.bz2 |
[flang] Fix build after 9e306ad4 (#141134)
Diffstat (limited to 'flang/unittests/Frontend/CodeGenActionTest.cpp')
-rw-r--r-- | flang/unittests/Frontend/CodeGenActionTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/flang/unittests/Frontend/CodeGenActionTest.cpp b/flang/unittests/Frontend/CodeGenActionTest.cpp index e9ff095..6020abc 100644 --- a/flang/unittests/Frontend/CodeGenActionTest.cpp +++ b/flang/unittests/Frontend/CodeGenActionTest.cpp @@ -86,8 +86,9 @@ public: TEST(CodeGenAction, GracefullyHandleLLVMConversionFailure) { std::string diagnosticOutput; llvm::raw_string_ostream diagnosticsOS(diagnosticOutput); + clang::DiagnosticOptions diagOpts; auto diagPrinter = std::make_unique<Fortran::frontend::TextDiagnosticPrinter>( - diagnosticsOS, new clang::DiagnosticOptions()); + diagnosticsOS, diagOpts); CompilerInstance ci; ci.createDiagnostics(diagPrinter.get(), /*ShouldOwnClient=*/false); |