Fix broken logic for include in block check.
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 13 Feb 2015 23:32:08 +0000 (23:32 +0000)
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>
Fri, 13 Feb 2015 23:32:08 +0000 (23:32 +0000)
llvm-svn: 229187

clang-tools-extra/modularize/PreprocessorTracker.cpp

index 894f3c0..8847da9 100644 (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);