[all-commits] [llvm/llvm-project] d08f34: [llvm] Don't use Optional::hasValue (NFC)
kazutakahirata via All-commits
all-commits at lists.llvm.org
Sun Jun 26 18:32:05 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d08f34b592ff06ccb1f36da88ec09aa926427a4d
https://github.com/llvm/llvm-project/commit/d08f34b592ff06ccb1f36da88ec09aa926427a4d
Author: Kazu Hirata <kazu at google.com>
Date: 2022-06-26 (Sun, 26 Jun 2022)
Changed paths:
M llvm/include/llvm/Support/YAMLTraits.h
M llvm/include/llvm/Transforms/IPO/Attributor.h
M llvm/lib/CodeGen/BasicBlockSections.cpp
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/lib/Transforms/IPO/AttributorAttributes.cpp
M llvm/lib/Transforms/Scalar/LoopRotation.cpp
M llvm/lib/Transforms/Scalar/LoopSimplifyCFG.cpp
M llvm/lib/Transforms/Scalar/LowerConstantIntrinsics.cpp
M llvm/utils/TableGen/GlobalISel/GIMatchTree.h
Log Message:
-----------
[llvm] Don't use Optional::hasValue (NFC)
This patch replaces Optional::hasValue with the implicit cast to bool
in conditionals only.
More information about the All-commits
mailing list