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) {


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

Reply via email to