aboutsummaryrefslogtreecommitdiff
path: root/flang/unittests/Frontend/CodeGenActionTest.cpp
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2025-05-22 13:51:20 -0700
committerGitHub <noreply@github.com>2025-05-22 13:51:20 -0700
commit3ea2cec7324e1e4569cd15b9e6cb1a4a6e8aa521 (patch)
treecba3a570eb827be307a328ba94f6a348443f5019 /flang/unittests/Frontend/CodeGenActionTest.cpp
parent45d8759cbed0f216786729718608a8be72a505c6 (diff)
downloadllvm-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.cpp3
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);