aboutsummaryrefslogtreecommitdiff
path: root/func.cc
diff options
context:
space:
mode:
authorShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-11-07 14:11:09 +0900
committerShinichiro Hamaji <shinichiro.hamaji@gmail.com>2015-11-07 14:11:09 +0900
commitb67a299ca5eb1c9272aa01fe2645d2c7a28c5d72 (patch)
tree87b8776f0190db447d61ce53ce74d2f0c4f161c9 /func.cc
parent7d261aa202177fd72e843eee4cc02319e44013f4 (diff)
downloadkati-b67a299ca5eb1c9272aa01fe2645d2c7a28c5d72.tar.gz
[C++] Fix a CHECK failure
Stats::Start could be recursively called. Also, measuring evaluation time of $(wildcard) parameters didn't make sense.
Diffstat (limited to 'func.cc')
-rw-r--r--func.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/func.cc b/func.cc
index 34fca3e..dfa9a71 100644
--- a/func.cc
+++ b/func.cc
@@ -305,8 +305,8 @@ void JoinFunc(const vector<Value*>& args, Evaluator* ev, string* s) {
}
void WildcardFunc(const vector<Value*>& args, Evaluator* ev, string* s) {
- COLLECT_STATS("func wildcard time");
const string&& pat = args[0]->Eval(ev);
+ COLLECT_STATS("func wildcard time");
// Note GNU make does not delay the execution of $(wildcard) so we
// do not need to check avoid_io here.
WordWriter ww(s);