This is an archive of the discontinued LLVM Phabricator instance.

Remove reference type when checking const structs
ClosedPublic

Authored by rtrieu on Jan 14 2022, 5:34 PM.

Details

Summary

ConstStructBuilder::Finalize in CGExprConstant.ccp assumes that the passed in QualType is a RecordType. In some instances, the type is a reference to a RecordType and the reference needs to be removed first.

Diff Detail

Event Timeline

rtrieu requested review of this revision.Jan 14 2022, 5:34 PM
rtrieu created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2022, 5:34 PM
alexfh accepted this revision.Jan 28 2022, 5:54 AM
alexfh added a subscriber: alexfh.

Looks good. Thanks for the fix!

This revision is now accepted and ready to land.Jan 28 2022, 5:54 AM
This revision was landed with ongoing or failed builds.Jan 28 2022, 1:22 PM
This revision was automatically updated to reflect the committed changes.