[flang-commits] [flang] [flang] Implement !DIR$ VECTOR ALWAYS (PR #93830)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Thu May 30 09:52:44 PDT 2024
================
@@ -8854,6 +8854,9 @@ void ResolveNamesVisitor::Post(const parser::AssignedGotoStmt &x) {
}
void ResolveNamesVisitor::Post(const parser::CompilerDirective &x) {
+ if (const auto *dir{
----------------
klausler wrote:
`dir` is not used. `if (std::holds_alternative<parser::CompilerDirective::VectorAlways>(x.u)) {` suffices.
Braces are missing. Always use braces around `if`/`for`/`while`/&c. bodies in the modern C++ bits of f18.
https://github.com/llvm/llvm-project/pull/93830
More information about the flang-commits
mailing list