diff options
author | Kazu Hirata <kazu@google.com> | 2022-07-11 20:41:12 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-07-11 20:41:12 -0700 |
commit | c82fb16f580c80b961cb1971df66ce70eaf7d87a (patch) | |
tree | 942a4b409c8f53ddb314ca190f1d4aecb19dc017 /flang/lib/Lower/IterationSpace.cpp | |
parent | ec9a0e36d9d3182b63c5b556beca6d9e397e73f1 (diff) | |
download | llvm-c82fb16f580c80b961cb1971df66ce70eaf7d87a.zip llvm-c82fb16f580c80b961cb1971df66ce70eaf7d87a.tar.gz llvm-c82fb16f580c80b961cb1971df66ce70eaf7d87a.tar.bz2 |
[flang] Use has_value instead of hasValue (NFC)
This patch replaces hasValue with has_value in an effort to deprecate
Optional<X>::hasValue.
Differential Revision: https://reviews.llvm.org/D129458
Diffstat (limited to 'flang/lib/Lower/IterationSpace.cpp')
-rw-r--r-- | flang/lib/Lower/IterationSpace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/flang/lib/Lower/IterationSpace.cpp b/flang/lib/Lower/IterationSpace.cpp index f41bc51..e282563 100644 --- a/flang/lib/Lower/IterationSpace.cpp +++ b/flang/lib/Lower/IterationSpace.cpp @@ -867,7 +867,7 @@ Fortran::lower::ExplicitIterSpace::findArgPosition(fir::ArrayLoadOp load) { llvm::Optional<size_t> optPos; if (ld != loadBindings.end() && ld->second == load) optPos = static_cast<size_t>(0u); - assert(optPos.hasValue() && "load does not correspond to lhs"); + assert(optPos.has_value() && "load does not correspond to lhs"); return optPos; } return llvm::None; |