Skip to content

Commit

Permalink
fix warnings when compiling with -Wshadow
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157061 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Nick Kledzik committed May 18, 2012
1 parent 23da8a0 commit 18e2f6e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions include/llvm/Support/CommandLine.h
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ class Option {
void setMiscFlag(enum MiscFlags M) { Misc |= M; }
void setPosition(unsigned pos) { Position = pos; }
protected:
explicit Option(enum NumOccurrencesFlag Occurrences,
explicit Option(enum NumOccurrencesFlag OccurrencesFlag,
enum OptionHidden Hidden)
: NumOccurrences(0), Occurrences(Occurrences), HiddenFlag(Hidden),
: NumOccurrences(0), Occurrences(OccurrencesFlag), HiddenFlag(Hidden),
Formatting(NormalFormatting), Position(0),
AdditionalVals(0), NextRegistered(0),
ArgStr(""), HelpStr(""), ValueStr("") {
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/Support/SMLoc.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SMRange {
SMLoc Start, End;

SMRange() {}
SMRange(SMLoc Start, SMLoc End) : Start(Start), End(End) {
SMRange(SMLoc St, SMLoc En) : Start(St), End(En) {
assert(Start.isValid() == End.isValid() &&
"Start and end should either both be valid or both be invalid!");
}
Expand Down
4 changes: 2 additions & 2 deletions include/llvm/Support/SourceMgr.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,9 @@ class SMDiagnostic {
SMDiagnostic()
: SM(0), LineNo(0), ColumnNo(0), Kind(SourceMgr::DK_Error) {}
// Diagnostic with no location (e.g. file not found, command line arg error).
SMDiagnostic(const std::string &filename, SourceMgr::DiagKind Kind,
SMDiagnostic(const std::string &filename, SourceMgr::DiagKind Knd,
const std::string &Msg)
: SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Kind),
: SM(0), Filename(filename), LineNo(-1), ColumnNo(-1), Kind(Knd),
Message(Msg) {}

// Diagnostic with a location.
Expand Down

0 comments on commit 18e2f6e

Please sign in to comment.