[flang-commits] [flang] [flang] Load every -load plugin, not only the last (PR #228760)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Tue Oct 6 13:56:54 PDT 2026
================
@@ -785,10 +785,10 @@ static bool parseFrontendArgs(FrontendOptions &opts, llvm::opt::ArgList &args,
}
}
- // Parsing -load <dsopath> option and storing shared object path
- if (llvm::opt::Arg *a = args.getLastArg(clang::options::OPT_load)) {
+ // Parsing -load <dsopath> options and storing the shared object paths, in
+ // order: each is loaded, as in clang.
+ for (const llvm::opt::Arg *a : args.filtered(clang::options::OPT_load))
----------------
tarunprabhu wrote:
Flang's style guide requires braces, even for loops with a single-line body. There are exceptions, but since the original code had braces, they should be retained.
https://github.com/llvm/llvm-project/pull/228760
More information about the flang-commits
mailing list