[clang] 2ad0b22 - Silence "not all control paths return a value"; NFC (#224276)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 06:03:15 PDT 2026
Author: Aaron Ballman
Date: 2026-09-17T13:03:08Z
New Revision: 2ad0b22b41409657750d2b516dbc6da2437f353e
URL: https://github.com/llvm/llvm-project/commit/2ad0b22b41409657750d2b516dbc6da2437f353e
DIFF: https://github.com/llvm/llvm-project/commit/2ad0b22b41409657750d2b516dbc6da2437f353e.diff
LOG: Silence "not all control paths return a value"; NFC (#224276)
Added:
Modified:
clang/lib/AST/ByteCode/Pointer.cpp
Removed:
################################################################################
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) {
More information about the cfe-commits
mailing list