summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-17 02:30:50 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-17 02:30:50 +0000
commitf47fa304a4ee7ab0db34210b7043743cc4dd3b8b (patch)
treed898d1fd590a170b2fb70f09907d8002943555e9 /clang/lib/Sema/SemaDeclAttr.cpp
parent5c93906cbf7999664986ab7c983ce6e61d1b09ee (diff)
downloadbcm5719-llvm-f47fa304a4ee7ab0db34210b7043743cc4dd3b8b.tar.gz
bcm5719-llvm-f47fa304a4ee7ab0db34210b7043743cc4dd3b8b.zip
Remove unnecessary default cases in switches over enums.
This allows -Wswitch-enum to find switches that need updating when these enums are modified. llvm-svn: 148281
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index cdba6208dbc..43bdf3f9305 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -1055,8 +1055,6 @@ static void handleOwnershipAttr(Sema &S, Decl *D, const AttributeList &AL) {
}
break;
}
- default:
- llvm_unreachable("Unknown ownership attribute");
} // switch
// Check we don't have a conflict with another ownership attribute.
OpenPOWER on IntegriCloud