diff options
author | Chad Rosier <mcrosier@apple.com> | 2011-10-05 20:09:11 +0000 |
---|---|---|
committer | Chad Rosier <mcrosier@apple.com> | 2011-10-05 20:09:11 +0000 |
commit | 22807868ad852806fd19e005945a910d3e9ab9ef (patch) | |
tree | aa1980e5121c5955188ebd3fac60af1155e32295 /lib/Driver/Compilation.cpp | |
parent | a2dd7d08a3665ba75d3d17b06a0dcc11570c9575 (diff) |
[driver] For consistency, handle all shell special characters handled by the
quoting code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141205 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Compilation.cpp')
-rw-r--r-- | lib/Driver/Compilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Driver/Compilation.cpp b/lib/Driver/Compilation.cpp index 7a62fa4b55..baaba19ed7 100644 --- a/lib/Driver/Compilation.cpp +++ b/lib/Driver/Compilation.cpp @@ -72,7 +72,7 @@ const DerivedArgList &Compilation::getArgsForToolChain(const ToolChain *TC, static bool needsQuote(const char *s) { for (const char *c = s; *c; ++c) - if (*c == ' ') + if (*c == ' ' || *c == '"' || *c == '\\' || *c == '$') return true; return false; } |