Skip to content

Commit 0b4ba42

Browse files
committed
Fix a build error.
1 parent def45fa commit 0b4ba42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

flang/lib/Optimizer/Transforms/AddDebugInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,9 @@ void AddDebugInfoPass::runOnOperation() {
694694
mlir::LLVM::DICompileUnitAttr cuAttr = mlir::LLVM::DICompileUnitAttr::get(
695695
mlir::DistinctAttr::create(mlir::UnitAttr::get(context)),
696696
llvm::dwarf::getLanguage("DW_LANG_Fortran95"), fileAttr, producer,
697-
isOptimized, debugLevel, mlir::StringAttr());
697+
isOptimized, debugLevel,
698+
/*nameTableKind=*/mlir::LLVM::DINameTableKind::Default,
699+
/*splitDwarfFile=*/mlir::StringAttr());
698700

699701
module.walk([&](mlir::func::FuncOp funcOp) {
700702
handleFuncOp(funcOp, fileAttr, cuAttr, typeGen, &symbolTable);

0 commit comments

Comments
 (0)