Commit 861b2a2
[KernelAddressSanitizer] Fix globals exclusion for indirect aliases
GlobalAlias::getAliasee() may not always point directly to a
GlobalVariable. In such cases, try to find the canonical GlobalVariable
that the alias refers to.
Link: ClangBuiltLinux/linux#1208
Reviewed By: dvyukov, nickdesaulniers
Differential Revision: https://reviews.llvm.org/D92846
(cherry picked from commit c28b18a)1 parent 8511a8d commit 861b2a2
File tree
2 files changed
+39
-14
lines changed- clang/test/CodeGen
- llvm/lib/Transforms/Instrumentation
2 files changed
+39
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
9 | 24 | | |
10 | 25 | | |
| 26 | + | |
| 27 | + | |
11 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
12 | 37 | | |
13 | 38 | | |
14 | | - | |
| 39 | + | |
15 | 40 | | |
16 | 41 | | |
17 | 42 | | |
| |||
Lines changed: 10 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
792 | 792 | | |
793 | 793 | | |
794 | 794 | | |
795 | | - | |
| 795 | + | |
796 | 796 | | |
797 | 797 | | |
798 | 798 | | |
| |||
1784 | 1784 | | |
1785 | 1785 | | |
1786 | 1786 | | |
1787 | | - | |
1788 | | - | |
| 1787 | + | |
| 1788 | + | |
1789 | 1789 | | |
1790 | 1790 | | |
1791 | 1791 | | |
1792 | 1792 | | |
1793 | 1793 | | |
1794 | 1794 | | |
| 1795 | + | |
| 1796 | + | |
1795 | 1797 | | |
1796 | 1798 | | |
1797 | 1799 | | |
1798 | | - | |
| 1800 | + | |
1799 | 1801 | | |
1800 | | - | |
| 1802 | + | |
1801 | 1803 | | |
1802 | 1804 | | |
1803 | 1805 | | |
| |||
2256 | 2258 | | |
2257 | 2259 | | |
2258 | 2260 | | |
2259 | | - | |
| 2261 | + | |
2260 | 2262 | | |
2261 | 2263 | | |
2262 | 2264 | | |
2263 | | - | |
2264 | | - | |
2265 | | - | |
2266 | | - | |
| 2265 | + | |
| 2266 | + | |
2267 | 2267 | | |
2268 | 2268 | | |
2269 | 2269 | | |
| |||
0 commit comments