We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d871456 commit 32d9144Copy full SHA for 32d9144
flang/lib/Lower/OpenACC.cpp
@@ -3295,9 +3295,12 @@ void Fortran::lower::finalizeOpenACCRoutineAttachment(
3295
mlir::func::FuncOp funcOp =
3296
mod.lookupSymbol<mlir::func::FuncOp>(mapping.first);
3297
if (!funcOp)
3298
- llvm::report_fatal_error(
3299
- "could not find function to attach OpenACC routine information.");
3300
- attachRoutineInfo(funcOp, mapping.second);
+ mlir::emitWarning(mod.getLoc(),
+ llvm::Twine("function '") + llvm::Twine(mapping.first) +
+ llvm::Twine("' in acc routine directive is not "
3301
+ "found in this translation unit."));
3302
+ else
3303
+ attachRoutineInfo(funcOp, mapping.second);
3304
}
3305
accRoutineInfos.clear();
3306
0 commit comments