llvm-project
92efec08 - [AST] Make err_struct_too_large check target-aware (#218749)

Commit
8 days ago
[AST] Make err_struct_too_large check target-aware (#218749) ASTContext::getASTRecordLayout used a fixed 1ULL << 60 threshold for err_struct_too_large, regardless of the target's size_t width. Scale the threshold to the target's size_t width instead, so it is below (1 << 32) on 32-bit architectures. Diagnosing the overflow in Sema avoids the crash in codegen. rdar://183351516
Author
Parents
Loading