summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/ASTLocation.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-20 21:50:17 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-20 21:50:17 +0000
commite4d798f07897a6378d0f2588e4c2335ec85ca935 (patch)
tree6f31c0fc2740ae77aa711c1f9da94a19d825af98 /clang/lib/Index/ASTLocation.cpp
parentf2a2f5f2bfe9da1a3e0a25934d833956b04bb8a5 (diff)
downloadbcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.tar.gz
bcm5719-llvm-e4d798f07897a6378d0f2588e4c2335ec85ca935.zip
More dead code removal (using -Wunreachable-code)
llvm-svn: 148577
Diffstat (limited to 'clang/lib/Index/ASTLocation.cpp')
-rw-r--r--clang/lib/Index/ASTLocation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Index/ASTLocation.cpp b/clang/lib/Index/ASTLocation.cpp
index a8537b1a1a0..2d5dc88f846 100644
--- a/clang/lib/Index/ASTLocation.cpp
+++ b/clang/lib/Index/ASTLocation.cpp
@@ -50,8 +50,8 @@ Decl *ASTLocation::getReferencedDecl() {
case N_Stmt:
return getDeclFromExpr(Stm);
}
-
- return 0;
+
+ llvm_unreachable("Invalid ASTLocation Kind!");
}
SourceRange ASTLocation::getSourceRange() const {
@@ -68,8 +68,8 @@ SourceRange ASTLocation::getSourceRange() const {
case N_Type:
return AsTypeLoc().getLocalSourceRange();
}
-
- return SourceRange();
+
+ llvm_unreachable("Invalid ASTLocation Kind!");
}
void ASTLocation::print(raw_ostream &OS) const {
OpenPOWER on IntegriCloud