diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-20 10:38:12 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-20 10:38:12 -0700 |
commit | e0e687a615c1fdb6ba034fc2e48b0834a372706f (patch) | |
tree | 79455a1fe4a3d455cbd304ca0c7c77dde47e1f61 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | e363c5963dc3ad5d9492d3f37055ad56a84411a5 (diff) | |
download | llvm-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.cpp | 2 |
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); |