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 /llvm/utils/FileCheck/FileCheck.cpp | |
parent | 342b1b2e9b376835f17630d9697be4b78a019389 (diff) | |
download | llvm-9adea6e4fae349564a946db22f8c5759567d30d1.zip llvm-9adea6e4fae349564a946db22f8c5759567d30d1.tar.gz llvm-9adea6e4fae349564a946db22f8c5759567d30d1.tar.bz2 |
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 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions