Index: tools/gn/target_generator.cc |
diff --git a/tools/gn/target_generator.cc b/tools/gn/target_generator.cc |
index bdccf43a72459516d9fa15efddb3671e38ef06ad..657581ac0166560067eaee51ebae4f3dc68920b2 100644 |
--- a/tools/gn/target_generator.cc |
+++ b/tools/gn/target_generator.cc |
@@ -264,7 +264,7 @@ bool TargetGenerator::EnsureSubstitutionIsInOutputDir( |
// If the first thing is a literal, it must start with the output dir. |
if (!EnsureStringIsInOutputDir( |
GetBuildSettings()->build_dir(), |
- pattern.ranges()[0].literal, original_value, err_)) |
+ pattern.ranges()[0].literal, original_value.origin(), err_)) |
return false; |
} else { |
// Otherwise, the first subrange must be a pattern that expands to |