aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcolincross <github@colincross.com>2018-11-12 22:06:15 -0800
committerGitHub <noreply@github.com>2018-11-12 22:06:15 -0800
commit271d041394ac21d8eda6a0a6a66b27531ec9bbb8 (patch)
treef350a0dac310b0eb9841cc630014c0c8e2fc1c90
parent7e8ed7f781f22f94a31fa13c77feb9b0991b6eba (diff)
parent9a73c8895f120677e36677e0050bc7a3507ded1e (diff)
downloadkati-271d041394ac21d8eda6a0a6a66b27531ec9bbb8.tar.gz
Merge pull request #161 from colincross/implicit_outputs_segfault
Fix segfault when reporting implicit outputs error
-rw-r--r--dep.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dep.cc b/dep.cc
index 3f8f44a..8905105 100644
--- a/dep.cc
+++ b/dep.cc
@@ -164,7 +164,7 @@ struct RuleMerger {
"*** implicit output `%s' of `%s' was already defined by `%s' "
"at %s:%d",
output.c_str(), p.c_str(), parent_sym.c_str(),
- parent->primary_rule->cmd_loc());
+ LOCF(parent->primary_rule->cmd_loc()));
}
if (primary_rule) {
ERROR_LOC(primary_rule->cmd_loc(),