Commit 1fba186
authored
[libclang] Migrate away from PointerUnion::dyn_cast (NFC) (#125631)
Note that PointerUnion::dyn_cast has been soft deprecated in
PointerUnion.h:
// FIXME: Replace the uses of is(), get() and dyn_cast() with
// isa<T>, cast<T> and the llvm::dyn_cast<T>
Literal migration would result in dyn_cast_if_present (see the
definition of PointerUnion::dyn_cast), but this patch uses dyn_cast
because we expect Storage to be nonnull. Note that if Storage were
null, dereferencing Ovl would trigger a segfault.1 parent 63c59dd commit 1fba186
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5370 | 5370 | | |
5371 | 5371 | | |
5372 | 5372 | | |
5373 | | - | |
| 5373 | + | |
5374 | 5374 | | |
5375 | 5375 | | |
5376 | 5376 | | |
5377 | 5377 | | |
5378 | | - | |
| 5378 | + | |
5379 | 5379 | | |
5380 | 5380 | | |
5381 | 5381 | | |
| |||
0 commit comments