HomePhabricator

[TypeSystem] Fix inspection of Objective-C object types

Description

[TypeSystem] Fix inspection of Objective-C object types

ptr_refs exposed a problem in ClangASTContext's implementation: it
uses an accessor to downcast a QualType to an
ObjCObjectPointerType, but the accessor is not fully general.
getAs() is the safer way to go.

I've added a test case that uses ptr_refs in a way that would
crash before the fix.

rdar://problem/31363513

Details

Committed
spyffeMay 15 2017, 12:55 PM
Parents
rL303109: Win snapshot: r303050
Branches
Unknown
Tags
Unknown