Commit 2405d94
committed
[NFC][BoundsSafety] Adopt
This is the first step in adopting the new trap reasons infrastructure.
This patch introduces the `trap_bs_fallback` diagnostic and this just
uses the existing infrastructure for computing trap reason reasons. Thus
there is no user visible change in behavior with this patch.
Future patches will start introducing new diagnostics so more specific
trap reason messages can be created.
rdar://158623471
(cherry picked from commit 7159768)TrapReason in CodeGenFunction::EmitBoundsSafetyTrapCheck
1 parent 9b3edeb commit 2405d94
File tree
4 files changed
+51
-22
lines changed- clang
- include/clang/Basic
- lib/CodeGen
4 files changed
+51
-22
lines changedLines changed: 19 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
4577 | 4578 | | |
4578 | 4579 | | |
4579 | 4580 | | |
4580 | | - | |
4581 | | - | |
| 4581 | + | |
4582 | 4582 | | |
4583 | 4583 | | |
4584 | 4584 | | |
| |||
4592 | 4592 | | |
4593 | 4593 | | |
4594 | 4594 | | |
| 4595 | + | |
| 4596 | + | |
4595 | 4597 | | |
4596 | | - | |
4597 | | - | |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
4598 | 4601 | | |
4599 | 4602 | | |
4600 | 4603 | | |
4601 | | - | |
4602 | | - | |
4603 | | - | |
4604 | | - | |
4605 | | - | |
4606 | | - | |
4607 | | - | |
4608 | | - | |
4609 | | - | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
4610 | 4607 | | |
4611 | 4608 | | |
4612 | 4609 | | |
4613 | | - | |
4614 | | - | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
4615 | 4613 | | |
4616 | 4614 | | |
4617 | 4615 | | |
| |||
4701 | 4699 | | |
4702 | 4700 | | |
4703 | 4701 | | |
4704 | | - | |
4705 | | - | |
4706 | | - | |
| 4702 | + | |
| 4703 | + | |
| 4704 | + | |
4707 | 4705 | | |
4708 | 4706 | | |
4709 | 4707 | | |
| 4708 | + | |
| 4709 | + | |
| 4710 | + | |
| 4711 | + | |
| 4712 | + | |
| 4713 | + | |
| 4714 | + | |
| 4715 | + | |
4710 | 4716 | | |
4711 | 4717 | | |
4712 | 4718 | | |
4713 | 4719 | | |
4714 | 4720 | | |
4715 | | - | |
4716 | | - | |
| 4721 | + | |
4717 | 4722 | | |
4718 | 4723 | | |
4719 | 4724 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5408 | 5408 | | |
5409 | 5409 | | |
5410 | 5410 | | |
5411 | | - | |
| 5411 | + | |
5412 | 5412 | | |
5413 | 5413 | | |
5414 | 5414 | | |
| |||
5418 | 5418 | | |
5419 | 5419 | | |
5420 | 5420 | | |
5421 | | - | |
| 5421 | + | |
| 5422 | + | |
5422 | 5423 | | |
5423 | 5424 | | |
5424 | 5425 | | |
| |||
0 commit comments