[clang] [clang][Interp] Integral pointers (PR #84159)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 6 05:55:48 PST 2024


================
@@ -123,8 +167,9 @@ APValue Pointer::toAPValue() const {
         Path.push_back(APValue::LValuePathEntry({BaseOrMember, IsVirtual}));
         Ptr = Ptr.getBase();
         continue;
+
+        llvm_unreachable("Invalid field type");
----------------
AaronBallman wrote:

Errr... given the unconditional `continue` on the line above, I agree this is unreachable... but does this actually help anything?

https://github.com/llvm/llvm-project/pull/84159


More information about the cfe-commits mailing list