Skip to content

Commit aa53f0d

Browse files
authored
[ASTContext] Make the end of the switch case unreachable in encodeTypeForFunctionPointerAuth (#99763)
This prevent the warning from compiler.
1 parent d36edf8 commit aa53f0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 1 addition & 0 deletions
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)