summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2024-08-22 10:19:56 -0700
committerGitHub <noreply@github.com>2024-08-22 10:19:56 -0700
commitb2cd81c93831fe256bddec5efa5a2765400076de (patch)
tree4c434d6b3de936853ec8bd255b472acc60704bf2 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent6b11573b8c5e3d36beee099dbe7347c2a007bf53 (diff)
[IR] Simplify comparisons with std::optional (NFC) (#105624)
For variable X of type std::optional, X && X.value_or(Y) == Z is equivalent to X == Z when Y != Z.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions