summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-11-23 23:20:13 +0000
committerChris Lattner <sabre@nondot.org>2008-11-23 23:20:13 +0000
commitd06850356594a175b91125f44a0e7ecea075d192 (patch)
treef0d89c0c9c18351f680e00bee8be6dfecfe86792 /clang/lib
parent03c4041cb517a709d0ef514731124690d2a485b8 (diff)
downloadbcm5719-llvm-d06850356594a175b91125f44a0e7ecea075d192.tar.gz
bcm5719-llvm-d06850356594a175b91125f44a0e7ecea075d192.zip
remove warn_previous_declaration
llvm-svn: 59922
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDeclObjC.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaDeclObjC.cpp b/clang/lib/Sema/SemaDeclObjC.cpp
index 7a7b3767b89..0b4ebabb9a7 100644
--- a/clang/lib/Sema/SemaDeclObjC.cpp
+++ b/clang/lib/Sema/SemaDeclObjC.cpp
@@ -143,14 +143,11 @@ Sema::DeclTy *Sema::ActOnCompatiblityAlias(SourceLocation AtLoc,
// Look for previous declaration of alias name
Decl *ADecl = LookupDecl(AliasName, Decl::IDNS_Ordinary, TUScope);
if (ADecl) {
- if (isa<ObjCCompatibleAliasDecl>(ADecl)) {
+ if (isa<ObjCCompatibleAliasDecl>(ADecl))
Diag(AliasLocation, diag::warn_previous_alias_decl);
- Diag(ADecl->getLocation(), diag::warn_previous_declaration);
- }
- else {
+ else
Diag(AliasLocation, diag::err_conflicting_aliasing_type) << AliasName;
- Diag(ADecl->getLocation(), diag::note_previous_declaration);
- }
+ Diag(ADecl->getLocation(), diag::note_previous_declaration);
return 0;
}
// Check for class declaration
@@ -159,7 +156,7 @@ Sema::DeclTy *Sema::ActOnCompatiblityAlias(SourceLocation AtLoc,
if (CDecl == 0) {
Diag(ClassLocation, diag::warn_undef_interface) << ClassName;
if (CDeclU)
- Diag(CDeclU->getLocation(), diag::warn_previous_declaration);
+ Diag(CDeclU->getLocation(), diag::note_previous_declaration);
return 0;
}
OpenPOWER on IntegriCloud