diff --git a/tools/rewriter/SourceRewriter.cpp b/tools/rewriter/SourceRewriter.cpp index 8b1c1d8bc..09f25be20 100644 --- a/tools/rewriter/SourceRewriter.cpp +++ b/tools/rewriter/SourceRewriter.cpp @@ -77,6 +77,7 @@ struct DirectoryParser : public llvm::cl::parser { llvm::errs() << ec.message() << '\n'; return true; } + llvm::sys::path::remove_dots(dir, true); Value = std::string(dir); return false; }