diff options
author | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-06 21:24:28 +0000 |
---|---|---|
committer | Sean Hunt <scshunt@csclub.uwaterloo.ca> | 2011-05-06 21:24:28 +0000 |
commit | bb85f8edca8103aa10e4b2f4a6fcc3a251b0ea03 (patch) | |
tree | 6b23217d1dfa6e1be7f752bf2fcd5b0b78d483d8 /lib/Parse/ParseDecl.cpp | |
parent | 26dc3e08da33594bb2fe5466ce48b4544a626cf0 (diff) |
Per Richard's suggestion, rename DefLoc to DefaultLoc where it appears.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@131018 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseDecl.cpp')
-rw-r--r-- | lib/Parse/ParseDecl.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Parse/ParseDecl.cpp b/lib/Parse/ParseDecl.cpp index a4c323979d..bde650ba3f 100644 --- a/lib/Parse/ParseDecl.cpp +++ b/lib/Parse/ParseDecl.cpp @@ -967,9 +967,7 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(Declarator &D, Actions.SetDeclDeleted(ThisDecl, DelLoc); } else if (Tok.is(tok::kw_default)) { - SourceLocation DefLoc = ConsumeToken(); - - Diag(DefLoc, diag::err_default_special_members); + Diag(ConsumeToken(), diag::err_default_special_members); } else { if (getLang().CPlusPlus && D.getCXXScopeSpec().isSet()) { EnterScope(0); |