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 | 10746f5ebb72f09962296e23f11af2ea4571dd3a (patch) | |
tree | a47be09dffd29232af84f8e27b6679cf948fce22 /clang/lib/Driver/Compilation.cpp | |
parent | 79d0c4f4b098bf27a16e8071b2b981fc30d34200 (diff) | |
download | llvm-10746f5ebb72f09962296e23f11af2ea4571dd3a.zip llvm-10746f5ebb72f09962296e23f11af2ea4571dd3a.tar.gz llvm-10746f5ebb72f09962296e23f11af2ea4571dd3a.tar.bz2 |
[driver] For consistency, handle all shell special characters handled by the
quoting code.
llvm-svn: 141205
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
-rw-r--r-- | clang/lib/Driver/Compilation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; } |