Commit b6ac68d
committed
[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>
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@303110 91177308-0d34-0410-b5e6-96231b3b80d81 parent 199a5ff commit b6ac68d
File tree
4 files changed
+98
-4
lines changed- packages/Python/lldbsuite/test/lang/objc/ptr_refs
- source/Symbol
4 files changed
+98
-4
lines changedLines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 50 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4551 | 4551 | | |
4552 | 4552 | | |
4553 | 4553 | | |
4554 | | - | |
| 4554 | + | |
4555 | 4555 | | |
4556 | 4556 | | |
4557 | 4557 | | |
| |||
4659 | 4659 | | |
4660 | 4660 | | |
4661 | 4661 | | |
4662 | | - | |
| 4662 | + | |
4663 | 4663 | | |
4664 | 4664 | | |
4665 | 4665 | | |
| |||
5766 | 5766 | | |
5767 | 5767 | | |
5768 | 5768 | | |
5769 | | - | |
| 5769 | + | |
5770 | 5770 | | |
5771 | 5771 | | |
5772 | 5772 | | |
| |||
5913 | 5913 | | |
5914 | 5914 | | |
5915 | 5915 | | |
5916 | | - | |
| 5916 | + | |
5917 | 5917 | | |
5918 | 5918 | | |
5919 | 5919 | | |
| |||
0 commit comments