From 22807868ad852806fd19e005945a910d3e9ab9ef Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 5 Oct 2011 20:09:11 +0000 Subject: [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 --- lib/Driver/Compilation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Driver/Compilation.cpp') 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; } -- cgit v1.2.3-70-g09d2