commit | 10746f5ebb72f09962296e23f11af2ea4571dd3a | [log] [tgz] |
---|---|---|
author | Chad Rosier <mcrosier@apple.com> | Wed Oct 05 20:09:11 2011 +0000 |
committer | Chad Rosier <mcrosier@apple.com> | Wed Oct 05 20:09:11 2011 +0000 |
tree | a47be09dffd29232af84f8e27b6679cf948fce22 | |
parent | 79d0c4f4b098bf27a16e8071b2b981fc30d34200 [diff] [blame] |
[driver] For consistency, handle all shell special characters handled by the quoting code. llvm-svn: 141205
diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 7a62fa4..baaba19 100644 --- a/clang/lib/Driver/Compilation.cpp +++ b/clang/lib/Driver/Compilation.cpp
@@ -72,7 +72,7 @@ static bool needsQuote(const char *s) { for (const char *c = s; *c; ++c) - if (*c == ' ') + if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$') return true; return false; }