Commit 940eba2
committed
[LLDB] Add a missing nullptr check for ClangImporter
This is not a possible code path in the Swift compiler, but LLDB has error paths
where ClangImporter could be null, and it has (for testing mostly) a setting to
disable ClangImporter entirely. When importing a Module with a header dependency
this crashes LLDB.
rdar://170007373
(cherry picked from commit a8392c2)1 parent cd2da72 commit 940eba2
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | 155 | | |
157 | 156 | | |
158 | 157 | | |
| |||
163 | 162 | | |
164 | 163 | | |
165 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
166 | 170 | | |
167 | 171 | | |
168 | 172 | | |
| |||
0 commit comments