diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-20 20:05:16 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-20 20:05:16 -0700 |
commit | 064a08cd955019da9130f1109bfa534e79b8ec7c (patch) | |
tree | e097a750d667d8ea431e374106ffbf075c8e3c90 /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | b89f483064716be015d74e6ed3e0b09f9d925c30 (diff) | |
download | llvm-064a08cd955019da9130f1109bfa534e79b8ec7c.zip llvm-064a08cd955019da9130f1109bfa534e79b8ec7c.tar.gz llvm-064a08cd955019da9130f1109bfa534e79b8ec7c.tar.bz2 |
Don't use Optional::hasValue (NFC)
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
-rw-r--r-- | clang/lib/CodeGen/CoverageMappingGen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CoverageMappingGen.cpp b/clang/lib/CodeGen/CoverageMappingGen.cpp index 61137f5..0fe084b 100644 --- a/clang/lib/CodeGen/CoverageMappingGen.cpp +++ b/clang/lib/CodeGen/CoverageMappingGen.cpp @@ -130,7 +130,7 @@ public: void setCounter(Counter C) { Count = C; } - bool hasStartLoc() const { return LocStart.hasValue(); } + bool hasStartLoc() const { return LocStart.has_value(); } void setStartLoc(SourceLocation Loc) { LocStart = Loc; } @@ -139,7 +139,7 @@ public: return *LocStart; } - bool hasEndLoc() const { return LocEnd.hasValue(); } + bool hasEndLoc() const { return LocEnd.has_value(); } void setEndLoc(SourceLocation Loc) { assert(Loc.isValid() && "Setting an invalid end location"); @@ -155,7 +155,7 @@ public: void setGap(bool Gap) { GapRegion = Gap; } - bool isBranch() const { return FalseCount.hasValue(); } + bool isBranch() const { return FalseCount.has_value(); } }; /// Spelling locations for the start and end of a source region. |