Author: Simon Pilgrim Date: 2025-09-29T11:03:25Z New Revision: 3c98be41465e16038aec7b5e088a2d0fbbcf8647
URL: https://github.com/llvm/llvm-project/commit/3c98be41465e16038aec7b5e088a2d0fbbcf8647 DIFF: https://github.com/llvm/llvm-project/commit/3c98be41465e16038aec7b5e088a2d0fbbcf8647.diff LOG: [clang][bytecode] Pointer::isZero - fix MSVC "not all control paths return a value" warning. NFC. (#161168) Added: Modified: clang/lib/AST/ByteCode/Pointer.h Removed: ################################################################################ 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
