https://github.com/RKSimon created 
https://github.com/llvm/llvm-project/pull/161168

None

>From 7ffae410adcd023cccfa15513fa11be69843bd8c Mon Sep 17 00:00:00 2001
From: Simon Pilgrim <[email protected]>
Date: Mon, 29 Sep 2025 11:42:45 +0100
Subject: [PATCH] [clang][bytecode] Pointer::isZero - fix MSVC "not all control
 paths return a value" warning. NFC.

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

diff --git a/clang/lib/AST/ByteCode/Pointer.h b/clang/lib/AST/ByteCode/Pointer.h
index af89b66e9f875..cd738ce8b2a3e 100644
--- a/clang/lib/AST/ByteCode/Pointer.h
+++ b/clang/lib/AST/ByteCode/Pointer.h
@@ -262,6 +262,7 @@ class Pointer {
     case Storage::Typeid:
       return false;
     }
+    llvm_unreachable("Unknown clang::interp::Storage enum");
   }
   /// Checks if the pointer is live.
   bool isLive() const {

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

Reply via email to