From 10746f5ebb72f09962296e23f11af2ea4571dd3a Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 5 Oct 2011 20:09:11 +0000 Subject: [PATCH] [driver] For consistency, handle all shell special characters handled by the quoting code. llvm-svn: 141205 --- clang/lib/Driver/Compilation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/Compilation.cpp b/clang/lib/Driver/Compilation.cpp index 7a62fa4b55f5..baaba19ed72b 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; }