summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseDecl.cpp
diff options
context:
space:
mode:
authorAlexis Hunt <alercah@gmail.com>2011-05-06 21:24:28 +0000
committerAlexis Hunt <alercah@gmail.com>2011-05-06 21:24:28 +0000
commit83dc3e89c35f249e5a7684604133ac495ff9ac66 (patch)
tree5d0b8ee99558ce9102e0f279bd597138778d8941 /clang/lib/Parse/ParseDecl.cpp
parente2e4fe0d323bfac7046e33f509f594275851d7b3 (diff)
downloadbcm5719-llvm-83dc3e89c35f249e5a7684604133ac495ff9ac66.tar.gz
bcm5719-llvm-83dc3e89c35f249e5a7684604133ac495ff9ac66.zip
Per Richard's suggestion, rename DefLoc to DefaultLoc where it appears.
llvm-svn: 131018
Diffstat (limited to 'clang/lib/Parse/ParseDecl.cpp')
-rw-r--r--clang/lib/Parse/ParseDecl.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseDecl.cpp b/clang/lib/Parse/ParseDecl.cpp
index a4c323979d4..bde650ba3fd 100644
--- a/clang/lib/Parse/ParseDecl.cpp
+++ b/clang/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);
OpenPOWER on IntegriCloud