[llvm] Don't use Optional::hasValue (NFC)
authorKazu Hirata <kazu@google.com>
Mon, 27 Jun 2022 01:31:51 +0000 (18:31 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 27 Jun 2022 01:31:51 +0000 (18:31 -0700)
commitd08f34b592ff06ccb1f36da88ec09aa926427a4d
tree0ea2a2b1752648cad4e0499547bc0918a303847d
parenteb9d21d65c65f6867ef4f142a86a4a2e4e1c4ac1
[llvm] Don't use Optional::hasValue (NFC)

This patch replaces Optional::hasValue with the implicit cast to bool
in conditionals only.
llvm/include/llvm/Support/YAMLTraits.h
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/CodeGen/BasicBlockSections.cpp
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/lib/Transforms/Scalar/LoopRotation.cpp
llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
llvm/utils/TableGen/GlobalISel/GIMatchTree.h