forked from OSchip/llvm-project
Fix broken logic for include in block check.
llvm-svn: 229187
This commit is contained in:
parent
c980fa92eb
commit
9ea81b0041
|
@ -901,7 +901,7 @@ public:
|
||||||
int DirectiveColumn, llvm::StringRef TargetPath) {
|
int DirectiveColumn, llvm::StringRef TargetPath) {
|
||||||
// If it's not a header in the header list, ignore it with respect to
|
// If it's not a header in the header list, ignore it with respect to
|
||||||
// the check.
|
// the check.
|
||||||
if (BlockCheckHeaderListOnly && !isHeaderListHeader(DirectivePath))
|
if (BlockCheckHeaderListOnly && !isHeaderListHeader(TargetPath))
|
||||||
return;
|
return;
|
||||||
HeaderHandle CurrentHeaderHandle = findHeaderHandle(DirectivePath);
|
HeaderHandle CurrentHeaderHandle = findHeaderHandle(DirectivePath);
|
||||||
StringHandle IncludeHeaderHandle = addString(TargetPath);
|
StringHandle IncludeHeaderHandle = addString(TargetPath);
|
||||||
|
|
Loading…
Reference in New Issue