https://github.com/AaronBallman created 
https://github.com/llvm/llvm-project/pull/224276

None

>From 63a2db7e9a84cbcd2f22a3aa5133c1b4a2d4c529 Mon Sep 17 00:00:00 2001
From: Aaron Ballman <[email protected]>
Date: Thu, 17 Sep 2026 08:14:23 -0400
Subject: [PATCH] Silence "not all control paths return a value"; NFC

---
 clang/lib/AST/ByteCode/Pointer.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/AST/ByteCode/Pointer.cpp 
b/clang/lib/AST/ByteCode/Pointer.cpp
index 95344656511a1e..dca2630138a4e6 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) {

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to