[clang] [ASTContext] Add a break to nested switch in `encodeTypeForFunctionPointerAuth` (PR #99763)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 20 07:32:33 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Brandon Wu (4vtomat)
<details>
<summary>Changes</summary>
This prevent the warning from compiler.
---
Full diff: https://github.com/llvm/llvm-project/pull/99763.diff
1 Files Affected:
- (modified) clang/lib/AST/ASTContext.cpp (+1)
``````````diff
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();
``````````
</details>
https://github.com/llvm/llvm-project/pull/99763
More information about the cfe-commits
mailing list