aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugVariables.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 10:38:12 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 10:38:12 -0700
commite0e687a615c1fdb6ba034fc2e48b0834a372706f (patch)
tree79455a1fe4a3d455cbd304ca0c7c77dde47e1f61 /llvm/lib/CodeGen/LiveDebugVariables.cpp
parente363c5963dc3ad5d9492d3f37055ad56a84411a5 (diff)
downloadllvm-e0e687a615c1fdb6ba034fc2e48b0834a372706f.zip
llvm-e0e687a615c1fdb6ba034fc2e48b0834a372706f.tar.gz
llvm-e0e687a615c1fdb6ba034fc2e48b0834a372706f.tar.bz2
[llvm] Don't use Optional::hasValue (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp
index 320e682..35cf2533 100644
--- a/llvm/lib/CodeGen/LiveDebugVariables.cpp
+++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp
@@ -972,7 +972,7 @@ void UserValue::extendDef(
if (Segment->end < Stop) {
Stop = Segment->end;
Kills = {Stop, {LII.first}};
- } else if (Segment->end == Stop && Kills.hasValue()) {
+ } else if (Segment->end == Stop && Kills) {
// If multiple locations end at the same place, track all of them in
// Kills.
Kills->second.push_back(LII.first);