Fix broken logic for include in block check.

llvm-svn: 229187
This commit is contained in:
John Thompson 2015-02-13 23:32:08 +00:00
parent c980fa92eb
commit 9ea81b0041
1 changed files with 1 additions and 1 deletions

View File

@ -901,7 +901,7 @@ public:
int DirectiveColumn, llvm::StringRef TargetPath) {
// If it's not a header in the header list, ignore it with respect to
// the check.
if (BlockCheckHeaderListOnly && !isHeaderListHeader(DirectivePath))
if (BlockCheckHeaderListOnly && !isHeaderListHeader(TargetPath))
return;
HeaderHandle CurrentHeaderHandle = findHeaderHandle(DirectivePath);
StringHandle IncludeHeaderHandle = addString(TargetPath);