aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-05-30 13:26:11 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-05-30 13:26:11 +0000
commit5e27009c747bb77967f556db92d7f2c3d43ecdb3 (patch)
tree87d1c8946c9dd5cb023e4079e1c18ff7598be0aa /lib
parent3a25c1eb49da45e83578f17b4254743197fb06f6 (diff)
downloadexternal_llvm-5e27009c747bb77967f556db92d7f2c3d43ecdb3.zip
external_llvm-5e27009c747bb77967f556db92d7f2c3d43ecdb3.tar.gz
external_llvm-5e27009c747bb77967f556db92d7f2c3d43ecdb3.tar.bz2
Give a proper error message when a command line option is defined more than
once (ie, at two different places in the source, not two times on the commandline). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp
index 412dcb6..571b033 100644
--- a/lib/Support/CommandLine.cpp
+++ b/lib/Support/CommandLine.cpp
@@ -120,7 +120,7 @@ static void GetOptionInfo(std::vector<Option*> &PositionalOpts,
if (!OptionsMap.insert(std::pair<std::string,Option*>(OptionNames[i],
O)).second) {
cerr << ProgramName << ": CommandLine Error: Argument '"
- << OptionNames[0] << "' defined more than once!\n";
+ << OptionNames[i] << "' defined more than once!\n";
}
}