diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 412dcb61839..571b0338677 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -120,7 +120,7 @@ static void GetOptionInfo(std::vector &PositionalOpts, if (!OptionsMap.insert(std::pair(OptionNames[i], O)).second) { cerr << ProgramName << ": CommandLine Error: Argument '" - << OptionNames[0] << "' defined more than once!\n"; + << OptionNames[i] << "' defined more than once!\n"; } }