Skip to content

Commit 0413328

Browse files
authored
[clang][Sema][NFC] remove unreachable return statement (#100642)
The switch now returns in every case so the end return is unreachable.
1 parent d2553a2 commit 0413328

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Sema/SemaPPC.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ bool SemaPPC::CheckPPCBuiltinFunctionCall(const TargetInfo &TI,
9393
unsigned BuiltinID,
9494
CallExpr *TheCall) {
9595
ASTContext &Context = getASTContext();
96-
unsigned i = 0, l = 0, u = 0;
9796
bool IsTarget64Bit = TI.getTypeWidth(TI.getIntPtrType()) == 64;
9897
llvm::APSInt Result;
9998

@@ -248,7 +247,7 @@ bool SemaPPC::CheckPPCBuiltinFunctionCall(const TargetInfo &TI,
248247
return BuiltinPPCMMACall(TheCall, BuiltinID, Types);
249248
#include "clang/Basic/BuiltinsPPC.def"
250249
}
251-
return SemaRef.BuiltinConstantArgRange(TheCall, i, l, u);
250+
llvm_unreachable("must return from switch");
252251
}
253252

254253
// Check if the given type is a non-pointer PPC MMA type. This function is used

0 commit comments

Comments
 (0)