HomePhabricator

[CodeGenObjC] Fix a crash when attempting to copy a zero-sized bit-field in a…

Authored by erik.pilkington on Apr 6 2020, 7:17 AM.

Description

[CodeGenObjC] Fix a crash when attempting to copy a zero-sized bit-field in a non-trivial C struct

Zero sized bit-fields aren't included in the CGRecordLayout, so we shouldn't be
calling EmitLValueForField for them. rdar://60695105

Differential revision: https://reviews.llvm.org/D76782