diff options
| author | Kazu Hirata <kazu@google.com> | 2022-12-10 17:09:01 -0800 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-12-10 17:09:01 -0800 |
| commit | 3eebbaf0e2de3f9a5af2f86a1c9264132c059215 (patch) | |
| tree | d8fb90937b70aae46ecec44c7f1bfe6fa6c6dcbd /llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | |
| parent | 8b5c302efb26634126bb57c20727a13ec2237558 (diff) | |
[llvm] Use std::optional instead of None in comments (NFC)
This is part of an effort to migrate from llvm::Optional to
std::optional:
https://discourse.llvm.org/t/deprecating-llvm-optional-x-hasvalue-getvalue-getvalueor/63716
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp index ea4b7165317e..973e3b4d708c 100644 --- a/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp +++ b/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp @@ -541,10 +541,10 @@ class LoopConstrainer { // Calculated subranges we restrict the iteration space of the main loop to. // See the implementation of `calculateSubRanges' for more details on how - // these fields are computed. `LowLimit` is None if there is no restriction - // on low end of the restricted iteration space of the main loop. `HighLimit` - // is None if there is no restriction on high end of the restricted iteration - // space of the main loop. + // these fields are computed. `LowLimit` is std::nullopt if there is no + // restriction on low end of the restricted iteration space of the main loop. + // `HighLimit` is std::nullopt if there is no restriction on high end of the + // restricted iteration space of the main loop. struct SubRanges { std::optional<const SCEV *> LowLimit; |
