diff options
author | Rui Ueyama <ruiu@google.com> | 2019-10-10 12:41:08 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2019-10-10 12:41:08 +0000 |
commit | 9adea6e4fae349564a946db22f8c5759567d30d1 (patch) | |
tree | 975e245d904ad465e9f6f4377839c9e6c4602453 /lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py | |
parent | 342b1b2e9b376835f17630d9697be4b78a019389 (diff) | |
download | bcm5719-llvm-9adea6e4fae349564a946db22f8c5759567d30d1.tar.gz bcm5719-llvm-9adea6e4fae349564a946db22f8c5759567d30d1.zip |
Make nullptr check more robust
The only condition that isecLoc becomes null is
Out::bufferStart == nullptr,
isec->getParent()->offset == 0, and
isec->outSecOff == 0.
We can check the first condition only once.
llvm-svn: 374332
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/section/TestSectionAPI.py')
0 files changed, 0 insertions, 0 deletions