Commit 91d6e10
authored
[CodeGen] Migrate away from PointerUnion::{is,get} (NFC) (#118600)
Note that PointerUnion::{is,get} have 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>
I'm not touching PointerUnion::dyn_cast for now because it's a bit
complicated; we could blindly migrate it to dyn_cast_if_present, but
we should probably use dyn_cast when the operand is known to be
non-null.1 parent 6f190ca commit 91d6e10
File tree
3 files changed
+14
-14
lines changed- clang/lib/CodeGen
3 files changed
+14
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4529 | 4529 | | |
4530 | 4530 | | |
4531 | 4531 | | |
4532 | | - | |
| 4532 | + | |
4533 | 4533 | | |
4534 | 4534 | | |
4535 | 4535 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7770 | 7770 | | |
7771 | 7771 | | |
7772 | 7772 | | |
7773 | | - | |
| 7773 | + | |
7774 | 7774 | | |
7775 | 7775 | | |
7776 | 7776 | | |
| |||
8333 | 8333 | | |
8334 | 8334 | | |
8335 | 8335 | | |
8336 | | - | |
| 8336 | + | |
8337 | 8337 | | |
8338 | | - | |
| 8338 | + | |
8339 | 8339 | | |
8340 | 8340 | | |
8341 | 8341 | | |
| |||
8345 | 8345 | | |
8346 | 8346 | | |
8347 | 8347 | | |
8348 | | - | |
| 8348 | + | |
8349 | 8349 | | |
8350 | | - | |
| 8350 | + | |
8351 | 8351 | | |
8352 | 8352 | | |
8353 | 8353 | | |
| |||
8519 | 8519 | | |
8520 | 8520 | | |
8521 | 8521 | | |
8522 | | - | |
| 8522 | + | |
8523 | 8523 | | |
8524 | | - | |
| 8524 | + | |
8525 | 8525 | | |
8526 | 8526 | | |
8527 | 8527 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
0 commit comments