diff options
author | Jan Niklas Hasse <jhasse@bixense.com> | 2021-06-10 20:19:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 20:19:07 (GMT) |
commit | d68f107f7a80d552d764c8cd0545955be02debe2 (patch) | |
tree | 8b37cefa64ce621602f6492edd5dc4de6799d069 /src/build.cc | |
parent | cd967ab21eef51819473b0cea22135fead76ffc2 (diff) | |
parent | 91706b323fcb2da9a87656d00ebbaf939ed8dad7 (diff) | |
download | Ninja-d68f107f7a80d552d764c8cd0545955be02debe2.zip Ninja-d68f107f7a80d552d764c8cd0545955be02debe2.tar.gz Ninja-d68f107f7a80d552d764c8cd0545955be02debe2.tar.bz2 |
Merge pull request #1979 from bradking/simplify-CanonicalizePath
util: Remove unnecessary CanonicalizePath error handling
Diffstat (limited to 'src/build.cc')
-rw-r--r-- | src/build.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/build.cc b/src/build.cc index fb5890a..cf07846 100644 --- a/src/build.cc +++ b/src/build.cc @@ -878,9 +878,7 @@ bool Builder::ExtractDeps(CommandRunner::Result* result, for (vector<StringPiece>::iterator i = deps.ins_.begin(); i != deps.ins_.end(); ++i) { uint64_t slash_bits; - if (!CanonicalizePath(const_cast<char*>(i->str_), &i->len_, &slash_bits, - err)) - return false; + CanonicalizePath(const_cast<char*>(i->str_), &i->len_, &slash_bits); deps_nodes->push_back(state_->GetNode(*i, slash_bits)); } |