[clang] [clang][bytecode] Reject GetField{,Pop} ops on non-records (PR #202260)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 10:32:14 PDT 2026
================
@@ -1631,42 +1631,56 @@ bool GetField(InterpState &S, CodePtr OpPC, uint32_t I) {
return false;
if (!CheckRange(S, OpPC, Obj, CSK_Field))
return false;
+
+ // FIXME(postswitch): The isUnknownSizeArray() check here is only needed
+ // to keep an invalid sample producing the same diagnostics as the current
----------------
shafik wrote:
What does "sample" refer to here?
https://github.com/llvm/llvm-project/pull/202260
More information about the cfe-commits
mailing list