summaryrefslogtreecommitdiffstats
path: root/lldb/source
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-03-14 23:39:42 +0000
committerZachary Turner <zturner@google.com>2015-03-14 23:39:42 +0000
commit073951f28be014cb3f723da7fff1081454da9035 (patch)
tree470fd4d5a15f19e1ce56874ab1545ee25e8c3210 /lldb/source
parenteeba1a896a6f038557e3a643413a9d3be1634dee (diff)
downloadbcm5719-llvm-073951f28be014cb3f723da7fff1081454da9035.tar.gz
bcm5719-llvm-073951f28be014cb3f723da7fff1081454da9035.zip
Fix a bug related to arg escaping, and add unit tests.
A recent refactor had introduced a bug where if you escaped a character, the rest of the string would get processed incorrectly. This patch fixes that bug and adds some unit tests for Args. llvm-svn: 232288
Diffstat (limited to 'lldb/source')
-rw-r--r--lldb/source/Interpreter/Args.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index 95f7ea52066..0678768ea72 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -230,7 +230,7 @@ Args::ParseSingleArgument(llvm::StringRef command)
arg += '\\';
arg += command.front();
- command.drop_front();
+ command = command.drop_front();
break;
OpenPOWER on IntegriCloud