summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2021-08-27 12:04:58 -0400
committerLouis Dionne <ldionne.2@gmail.com>2021-09-03 16:04:02 -0400
commitfd66b44ec19e76c111c8a37a42dcb4b44a96bfd6 (patch)
treec45dcfa78ce7609019155e5e76a14a7ab3678fe3 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp
parent79f8b5f0d00fd10fee8aee3c3c58e17a8fea8946 (diff)
[libc++] Add an assertion in the subrange constructors with a size hint
Those constructors are very easy to misuse -- one could easily think that the size passed to the constructor is the size of the range to exhibit from the subrange. Instead, it's a size hint and it's UB to get it wrong. Hence, when it's cheap to compute the real size of the range, it's cheap to make sure that the user didn't get it wrong. Differential Revision: https://reviews.llvm.org/D108827
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptedPythonInterface.cpp')
0 files changed, 0 insertions, 0 deletions