diff options
| author | Sean Callanan <scallanan@apple.com> | 2017-05-15 19:55:20 +0000 |
|---|---|---|
| committer | Sean Callanan <scallanan@apple.com> | 2017-05-15 19:55:20 +0000 |
| commit | 732a6f432e8639f22849d661b272d1a1bb4a0967 (patch) | |
| tree | e395f9736b97ab8c58a6a0fd371768523260eabb /llvm/test/Transforms/LoopVectorize/cpp-new-array.ll | |
| parent | 8b96c7e9b5434b96023c8c0dcd21c493ddb78990 (diff) | |
| download | bcm5719-llvm-732a6f432e8639f22849d661b272d1a1bb4a0967.tar.gz bcm5719-llvm-732a6f432e8639f22849d661b272d1a1bb4a0967.zip | |
[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>
llvm-svn: 303110
Diffstat (limited to 'llvm/test/Transforms/LoopVectorize/cpp-new-array.ll')
0 files changed, 0 insertions, 0 deletions

