summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang-tools-extra/modularize/PreprocessorTracker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/modularize/PreprocessorTracker.cpp b/clang-tools-extra/modularize/PreprocessorTracker.cpp
index 894f3c0f771..8847da90a12 100644
--- a/clang-tools-extra/modularize/PreprocessorTracker.cpp
+++ b/clang-tools-extra/modularize/PreprocessorTracker.cpp
@@ -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);
OpenPOWER on IntegriCloud