[clang] [ASTContext] Add a break to nested switch in `encodeTypeForFunctionPointerAuth` (PR #99763)
Brandon Wu via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 20 07:32:02 PDT 2024
https://github.com/4vtomat created https://github.com/llvm/llvm-project/pull/99763
This prevent the warning from compiler.
>From faf331e112ddd7ab6633f5fced55cceaef7065e0 Mon Sep 17 00:00:00 2001
From: Brandon Wu <brandon.wu at sifive.com>
Date: Sat, 20 Jul 2024 07:27:53 -0700
Subject: [PATCH] [ASTContext] Add a break to nested switch in
`encodeTypeForFunctionPointerAuth`
This prevent the warning from compiler.
---
clang/lib/AST/ASTContext.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 90bcbea072e39..9c7818e9dd80e 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -3363,6 +3363,7 @@ static void encodeTypeForFunctionPointerAuth(const ASTContext &Ctx,
#include "clang/Basic/RISCVVTypes.def"
llvm_unreachable("not yet implemented");
}
+ break;
}
case Type::Record: {
const RecordDecl *RD = T->getAs<RecordType>()->getDecl();
More information about the cfe-commits
mailing list