Skip to content
Commit 6ee589e2 authored by Simon Pilgrim's avatar Simon Pilgrim
Browse files

[CGObjCMac] Use castAs<> instead of getAs<> to avoid dereference of nullptr...

[CGObjCMac] Use castAs<> instead of getAs<> to avoid dereference of nullptr inside BuildRCBlockVarRecordLayout

This will assert the cast is correct instead of returning nullptr (UnionType is a subtype of RecordType so this should be clean).
parent 7e679f88
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment