[PATCH] D54010: [CodeGen] Fix a crash when updating a zeroinitialize designated initializer
Erik Pilkington via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 1 16:32:46 PDT 2018
erik.pilkington created this revision.
erik.pilkington added reviewers: rjmccall, ahatanak.
Herald added a subscriber: dexonsmith.
LLVM IR, in it's infinite wisdom, doesn't relate `ConstantAggregate` and `ConstantAggregateZero` through inheritance, so make sure we handle both cases here. Fixes a crash-on-valid.
rdar://45691981
Thanks for taking a look!
Erik
Repository:
rC Clang
https://reviews.llvm.org/D54010
Files:
clang/lib/CodeGen/CGExprConstant.cpp
clang/test/CodeGen/designated-initializers.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54010.172266.patch
Type: text/x-patch
Size: 4261 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20181101/303ebddc/attachment.bin>
More information about the cfe-commits
mailing list