[Lldb-commits] [PATCH] D33077: [TypeSystem] Fix inspection of Objective-C object types

Sean Callanan via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed May 10 15:41:00 PDT 2017


spyffe created this revision.

`ptr_refs` exposed a problem in ClangASTContext's implementation; it uses an accessor to convert a `QualType` into 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.


Repository:
  rL LLVM

https://reviews.llvm.org/D33077

Files:
  packages/Python/lldbsuite/test/functionalities/ptr_refs-objc/Makefile
  packages/Python/lldbsuite/test/functionalities/ptr_refs-objc/TestPtrRefsObjC.py
  packages/Python/lldbsuite/test/functionalities/ptr_refs-objc/main.m
  source/Symbol/ClangASTContext.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33077.98547.patch
Type: text/x-patch
Size: 5355 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20170510/2dc04377/attachment.bin>


More information about the lldb-commits mailing list