================
@@ -1221,3 +1254,172 @@ IntPointer IntPointer::baseCast(const interp::Context 
&Ctx,
                                               std::nullopt, RD, false);
   return {T.getTypePtr(), Value + BaseLayoutOffset.getQuantity()};
 }
+
+std::optional<size_t>
+OpaquePointer::computeLayoutOffset(const ASTContext &ASTCtx) const {
----------------
tbaederr wrote:

I don't see how bitfields factor into this, it just returns the offset of a 
field, if the field is preceded by a bitfield, the `ASTRecordLayout` would 
handle that.

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

Reply via email to