forked from OSchip/llvm-project
ModuleMap::findHeader - fix null dereference warning. NFCI.
We were checking M for a null value after we'd already dereferenced it multiple times.
This commit is contained in:
parent
3823759afb
commit
0b4c2ee381
|
@ -229,7 +229,7 @@ const FileEntry *ModuleMap::findHeader(
|
|||
llvm::sys::path::append(FullPathName, RelativePathName);
|
||||
auto *NormalHdrFile = GetFile(FullPathName);
|
||||
|
||||
if (M && !NormalHdrFile && Directory->getName().endswith(".framework")) {
|
||||
if (!NormalHdrFile && Directory->getName().endswith(".framework")) {
|
||||
// The lack of 'framework' keyword in a module declaration it's a simple
|
||||
// mistake we can diagnose when the header exists within the proper
|
||||
// framework style path.
|
||||
|
|
Loading…
Reference in New Issue