[all-commits] [llvm/llvm-project] 86b8c1: [flang] Don't use Optional::hasValue (NFC)

kazutakahirata via All-commits all-commits at lists.llvm.org
Sun Jul 10 15:01:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 86b8c1d9c4a9f540aec2f43989cb8340ae8e9284
      https://github.com/llvm/llvm-project/commit/86b8c1d9c4a9f540aec2f43989cb8340ae8e9284
  Author: Kazu Hirata <kazu at google.com>
  Date:   2022-07-10 (Sun, 10 Jul 2022)

  Changed paths:
    M flang/include/flang/Lower/IterationSpace.h
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/lib/Lower/IterationSpace.cpp
    M flang/lib/Optimizer/CodeGen/BoxedProcedure.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/lib/Optimizer/CodeGen/TargetRewrite.cpp
    M flang/lib/Optimizer/Dialect/FIROps.cpp
    M flang/lib/Optimizer/Support/InternalNames.cpp
    M flang/lib/Optimizer/Transforms/AffinePromotion.cpp
    M flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp

  Log Message:
  -----------
  [flang] Don't use Optional::hasValue (NFC)

Flang C++ Style Guide tells us to avoid .has_value() in the predicate
expressions of control flow statements.  I am treating ternary
expressions as control flow statements for the purpose of this patch.

Differential Revision: https://reviews.llvm.org/D128622




More information about the All-commits mailing list