summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-01-21 00:52:17 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-01-21 00:52:17 +0000
commit1efd55ff21eb3f9c2b94ddb7b97e316d0b926b64 (patch)
treed8e538607524fb120ca75b60b83d91bbecfa32bd /clang/lib
parent83887fb7dce2620e59027d66e02d6dee597424f6 (diff)
downloadbcm5719-llvm-1efd55ff21eb3f9c2b94ddb7b97e316d0b926b64.tar.gz
bcm5719-llvm-1efd55ff21eb3f9c2b94ddb7b97e316d0b926b64.zip
Sema: err_after_alias is unreachable, remove it
Examples this would have catched are now handled by the attribute verification code. llvm-svn: 226626
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index cd6ff6ce582..8af7e5a1d03 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -2223,11 +2223,7 @@ static void checkNewAttributesAfterDef(Sema &S, Decl *New, const Decl *Old) {
S.CheckForFunctionRedefinition(FD, cast<FunctionDecl>(Def));
else {
VarDecl *VD = cast<VarDecl>(New);
- unsigned Diag = cast<VarDecl>(Def)->isThisDeclarationADefinition() ==
- VarDecl::TentativeDefinition
- ? diag::err_alias_after_tentative
- : diag::err_redefinition;
- S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
+ S.Diag(VD->getLocation(), diag::err_redefinition) << VD->getDeclName();
S.Diag(Def->getLocation(), diag::note_previous_definition);
VD->setInvalidDecl();
}
OpenPOWER on IntegriCloud