aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Compilation.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2011-10-05 20:09:11 +0000
committerChad Rosier <mcrosier@apple.com>2011-10-05 20:09:11 +0000
commit22807868ad852806fd19e005945a910d3e9ab9ef (patch)
treeaa1980e5121c5955188ebd3fac60af1155e32295 /lib/Driver/Compilation.cpp
parenta2dd7d08a3665ba75d3d17b06a0dcc11570c9575 (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.cpp2
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;
}