[Support] Fix argv string escape bug on Windows
Summary: This is http://llvm.org/PR15802. Backslashes preceding double quotes in arguments must be escaped. The interesting bit is that all other backslashes should *not* be escaped, because the un-escaping logic is only triggered by the presence of a double quote character. Reviewers: Bigcheese CC: llvm-commits Differential Revision: http://llvm-reviews.chandlerc.com/D705 llvm-svn: 180035
Showing
- llvm/lib/Support/Windows/Program.inc 42 additions, 4 deletionsllvm/lib/Support/Windows/Program.inc
- llvm/unittests/Support/CMakeLists.txt 1 addition, 0 deletionsllvm/unittests/Support/CMakeLists.txt
- llvm/unittests/Support/ProgramTest.cpp 63 additions, 0 deletionsllvm/unittests/Support/ProgramTest.cpp
Loading
Please register or sign in to comment