Skip to content

Commit

Permalink
Remove dots in directory paths
Browse files Browse the repository at this point in the history
This fixes some issues with the rewriter when non-canonical paths are specified for the root or output directories.
  • Loading branch information
randomPoison committed Dec 13, 2024
1 parent 564f95e commit dd23c93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/rewriter/SourceRewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ struct DirectoryParser : public llvm::cl::parser<std::string> {
llvm::errs() << ec.message() << '\n';
return true;
}
llvm::sys::path::remove_dots(dir, true);
Value = std::string(dir);
return false;
}
Expand Down

0 comments on commit dd23c93

Please sign in to comment.