[clang] [clang][bytecode] Apply pointer casts to opaque pointers (PR #223607)
Oliver Hunt via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 15 00:14:57 PDT 2026
================
@@ -1989,6 +1998,53 @@ bool CheckBitCast(InterpState &S, CodePtr OpPC, const Type *TargetType,
return true;
}
+bool PtrPtrCast(InterpState &S, CodePtr OpPC, bool SrcIsVoidPtr,
+ const Type *TargetType) {
+ const auto &Ptr = S.Stk.peek<Pointer>();
+
+ if (SrcIsVoidPtr && S.getLangOpts().CPlusPlus) {
----------------
ojhunt wrote:
My reading of these diagnostics is that it's just the body of the old PtrPtrCast
https://github.com/llvm/llvm-project/pull/223607
More information about the cfe-commits
mailing list