Fixes a gcc debug-mode assertion.
bool DepsLog::RecordDeps(Node* node, TimeStamp mtime,
const vector<Node*>& nodes) {
bool DepsLog::RecordDeps(Node* node, TimeStamp mtime,
const vector<Node*>& nodes) {
- return RecordDeps(node, mtime, nodes.size(), (Node**)&nodes.front());
+ return RecordDeps(node, mtime, nodes.size(),
+ nodes.empty() ? NULL : (Node**)&nodes.front());
}
bool DepsLog::RecordDeps(Node* node, TimeStamp mtime,
}
bool DepsLog::RecordDeps(Node* node, TimeStamp mtime,