aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-26 16:10:42 -0700
committerKazu Hirata <kazu@google.com>2022-06-26 16:10:42 -0700
commita81b64a1fbff689a37f55a9b5e44a66f5b7f9a5c (patch)
tree633953d8d93ee2a4dc542a71177f0bece8d7177a /llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
parentfadea4413ecbfffa4d28ad8298e0628165b543f1 (diff)
downloadllvm-a81b64a1fbff689a37f55a9b5e44a66f5b7f9a5c.zip
llvm-a81b64a1fbff689a37f55a9b5e44a66f5b7f9a5c.tar.gz
llvm-a81b64a1fbff689a37f55a9b5e44a66f5b7f9a5c.tar.bz2
[llvm] Use Optional::has_value instead of Optional::hasValue (NFC)
This patch replaces x.hasValue() with x.has_value() where x is not contextually convertible to bool.
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
index 049cc68..0ad6645 100644
--- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
+++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
@@ -47,9 +47,9 @@ bool Operand::isUse() const { return !IsDef; }
bool Operand::isReg() const { return Tracker; }
-bool Operand::isTied() const { return TiedToIndex.hasValue(); }
+bool Operand::isTied() const { return TiedToIndex.has_value(); }
-bool Operand::isVariable() const { return VariableIndex.hasValue(); }
+bool Operand::isVariable() const { return VariableIndex.has_value(); }
bool Operand::isMemory() const {
return isExplicit() &&