[PATCH] D110280: [modules] Fix IRGen assertion on accessing ObjC ivar inside a method.

Sharon Xu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 1 23:31:57 PST 2022


SharonXu added a comment.

Hi @vsapsai, I checked out the apple `stable/20211026`  llvm-project branch at https://github.com/apple/llvm-project/tree/stable/20211026, and ran check-clang locally, but the tested added in the patch `clang/test/Modules/merge-objc-interface.m` failed with the error

  clang: /home/sharonxu/local/apple_llvm_main/llvm-project/clang/lib/AST/RecordLayoutBuilder.cpp:3457: uint64_t clang::ASTContext::lookupFieldBitOffset(const clang::ObjCInterfaceDecl*, const clang::ObjCImplementationDecl*, const clang::ObjCIvarDecl*) const: Assertion `Index < RL->getFieldCount() && "Ivar is not inside record layout!"' failed.

Do you know what's going on? Any fix missing on the `stable/20211026` branch?

Thanks!
Sharon


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110280/new/

https://reviews.llvm.org/D110280



More information about the cfe-commits mailing list