aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
diff options
context:
space:
mode:
authorTed Woodward <ted.woodward@codeaurora.org>2015-04-06 21:55:14 +0000
committerTed Woodward <ted.woodward@codeaurora.org>2015-04-06 21:55:14 +0000
commite7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8 (patch)
treea0992d350764f06801f43a540d7b1d59934b53ac /llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp
parentc077b3d0acfa4d2ec4fc46fe9d294927cacbf191 (diff)
downloadllvm-e7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8.zip
llvm-e7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8.tar.gz
llvm-e7e8e3cd8995f839db1d29f7c41beb6b9e35d9b8.tar.bz2
Fix check for options in "command alias"
Summary: "command alias" can add invalid options to the command. "command alias start process launch -s" will add an extra argument, "<no-argument>" to the alias, so it runs "process launch -s <no-argument>", which launches the process with args that include "<no-argument>". This patch changes the text compare of the variable value with "<OptionParser::eNoArgument>" to a compare of variable value_type with OptionParser::eNoArgument. It also moves the previous test inside the if, so it won't add a trailing space if there is no argument. Reviewers: clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8844 llvm-svn: 234244
Diffstat (limited to 'llvm/lib/Analysis/ModuleDebugInfoPrinter.cpp')
0 files changed, 0 insertions, 0 deletions