diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-17 06:56:22 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-17 06:56:22 +0000 |
commit | 8a40f700e62b87baa2ec988effb6315663a90cb9 (patch) | |
tree | 7abe4b388fee654d7fbc5692075dda1fc921c8f0 /clang/lib/Sema/SemaChecking.cpp | |
parent | 7ccdc5c192924f6437f664c43b315b6d6b725c80 (diff) | |
download | bcm5719-llvm-8a40f700e62b87baa2ec988effb6315663a90cb9.tar.gz bcm5719-llvm-8a40f700e62b87baa2ec988effb6315663a90cb9.zip |
Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it)
llvm-svn: 148292
Diffstat (limited to 'clang/lib/Sema/SemaChecking.cpp')
-rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index af0eedd791d..e94aa2ffce3 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -342,7 +342,7 @@ static unsigned RFT(unsigned t, bool shift = false) { assert(!shift && "cannot shift float types!"); return (2 << IsQuad) - 1; } - return 0; + llvm_unreachable("Invalid NeonTypeFlag!"); } /// getNeonEltType - Return the QualType corresponding to the elements of @@ -367,7 +367,7 @@ static QualType getNeonEltType(NeonTypeFlags Flags, ASTContext &Context) { case NeonTypeFlags::Float32: return Context.FloatTy; } - return QualType(); + llvm_unreachable("Invalid NeonTypeFlag!"); } bool Sema::CheckARMBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) { |