[clang] Silence "not all control paths return a value"; NFC (PR #224276)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 05:16:15 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Aaron Ballman (AaronBallman)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/224276.diff
1 Files Affected:
- (modified) clang/lib/AST/ByteCode/Pointer.cpp (+1)
``````````diff
diff --git a/clang/lib/AST/ByteCode/Pointer.cpp b/clang/lib/AST/ByteCode/Pointer.cpp
index 95344656511a1..dca2630138a4e 100644
--- a/clang/lib/AST/ByteCode/Pointer.cpp
+++ b/clang/lib/AST/ByteCode/Pointer.cpp
@@ -999,6 +999,7 @@ bool Pointer::hasSameBase(const Pointer &A, const Pointer &B) {
B.Opaque.Base.asVarDecl()->getMostRecentDecl();
return false;
}
+ llvm_unreachable("should have been handled by the fully covered switch");
}
bool Pointer::pointToSameBlock(const Pointer &A, const Pointer &B) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/224276
More information about the cfe-commits
mailing list