Skip to content

Commit a78458b

Browse files
committed
[flang] Fix build after llvm#150124
(cherry picked from commit b0f85be)
1 parent 1f6a5d9 commit a78458b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

flang/lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "flang/Tools/TargetSetup.h"
2323
#include "flang/Version.inc"
2424
#include "clang/Basic/DiagnosticDriver.h"
25+
#include "clang/Basic/DiagnosticFrontend.h"
2526
#include "clang/Basic/DiagnosticOptions.h"
2627
#include "clang/Driver/CommonArgs.h"
2728
#include "clang/Driver/Driver.h"
@@ -1215,7 +1216,7 @@ static bool parseOpenMPArgs(CompilerInvocation &res, llvm::opt::ArgList &args,
12151216
clang::driver::options::OPT_fopenmp_host_ir_file_path)) {
12161217
res.getLangOpts().OMPHostIRFile = arg->getValue();
12171218
if (!llvm::sys::fs::exists(res.getLangOpts().OMPHostIRFile))
1218-
diags.Report(clang::diag::err_drv_omp_host_ir_file_not_found)
1219+
diags.Report(clang::diag::err_omp_host_ir_file_not_found)
12191220
<< res.getLangOpts().OMPHostIRFile;
12201221
}
12211222

0 commit comments

Comments
 (0)