summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmGccDepfileLexerHelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGccDepfileLexerHelper.cxx b/Source/cmGccDepfileLexerHelper.cxx
index a375904..9706c50 100644
--- a/Source/cmGccDepfileLexerHelper.cxx
+++ b/Source/cmGccDepfileLexerHelper.cxx
@@ -144,8 +144,8 @@ void cmGccDepfileLexerHelper::sanitizeContent()
++rit;
}
}
- // Remove the entry if rules are empty or do not have any paths
- if (it->rules.empty() || it->paths.empty()) {
+ // Remove the entry if rules are empty
+ if (it->rules.empty()) {
it = this->Content.erase(it);
} else {
++it;