Index: tools/gn/target.cc |
diff --git a/tools/gn/target.cc b/tools/gn/target.cc |
index ba1e4b780610c995e49be094804a1d665c20290c..dc2d9e156cec3dc9e713cf09e7f74518aedebbc5 100644 |
--- a/tools/gn/target.cc |
+++ b/tools/gn/target.cc |
@@ -362,7 +362,7 @@ bool Target::CheckVisibility(Err* err) const { |
} |
for (size_t i = 0; i < datadeps_.size(); i++) { |
- if (deps_[i].origin && |
+ if (datadeps_[i].origin && |
!Visibility::CheckItemVisibility(this, datadeps_[i].ptr, err)) |
return false; |
} |