HomePhabricator

Make nullptr check more robust

Authored by ruiu on Oct 10 2019, 5:41 AM.

Description

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

Details

Committed
ruiuOct 10 2019, 5:41 AM
Parents
rG342b1b2e9b37: File: Handle more cases in GetOptionsFromMode
Branches
Unknown
Tags
Unknown