Skip to content

Commit 1fb7815

Browse files
4vtomatyuxuanchen1997
authored andcommitted
[ASTContext] Make the end of the switch case unreachable in encodeTypeForFunctionPointerAuth (#99763)
Summary: This prevent the warning from compiler. Test Plan: Reviewers: Subscribers: Tasks: Tags: Differential Revision: https://phabricator.intern.facebook.com/D60250722
1 parent b2ed324 commit 1fb7815

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/AST/ASTContext.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -3363,6 +3363,7 @@ static void encodeTypeForFunctionPointerAuth(const ASTContext &Ctx,
33633363
#include "clang/Basic/RISCVVTypes.def"
33643364
llvm_unreachable("not yet implemented");
33653365
}
3366+
llvm_unreachable("should never get here");
33663367
}
33673368
case Type::Record: {
33683369
const RecordDecl *RD = T->getAs<RecordType>()->getDecl();

0 commit comments

Comments
 (0)