Commit def3aa4
committed
ValueTracking: Use fcAllFlags for unknown value
In the failure case we return null, which callers are checking.
We were also returning an fcNone which was unused. It's more
consistent to return fcAllFlags as any possible value, such that
the value is always directly usable without checking the returned
value.1 parent 5082e82 commit def3aa4
File tree
2 files changed
+12
-12
lines changed- llvm
- lib/Analysis
- unittests/Analysis
2 files changed
+12
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4003 | 4003 | | |
4004 | 4004 | | |
4005 | 4005 | | |
4006 | | - | |
| 4006 | + | |
4007 | 4007 | | |
4008 | 4008 | | |
4009 | 4009 | | |
| |||
4025 | 4025 | | |
4026 | 4026 | | |
4027 | 4027 | | |
4028 | | - | |
| 4028 | + | |
4029 | 4029 | | |
4030 | 4030 | | |
4031 | 4031 | | |
| |||
4062 | 4062 | | |
4063 | 4063 | | |
4064 | 4064 | | |
4065 | | - | |
| 4065 | + | |
4066 | 4066 | | |
4067 | 4067 | | |
4068 | 4068 | | |
| |||
4146 | 4146 | | |
4147 | 4147 | | |
4148 | 4148 | | |
4149 | | - | |
| 4149 | + | |
4150 | 4150 | | |
4151 | 4151 | | |
4152 | 4152 | | |
| |||
4160 | 4160 | | |
4161 | 4161 | | |
4162 | 4162 | | |
4163 | | - | |
| 4163 | + | |
4164 | 4164 | | |
4165 | 4165 | | |
4166 | 4166 | | |
4167 | 4167 | | |
4168 | 4168 | | |
4169 | 4169 | | |
4170 | | - | |
| 4170 | + | |
4171 | 4171 | | |
4172 | 4172 | | |
4173 | 4173 | | |
| |||
4196 | 4196 | | |
4197 | 4197 | | |
4198 | 4198 | | |
4199 | | - | |
| 4199 | + | |
4200 | 4200 | | |
4201 | 4201 | | |
4202 | 4202 | | |
4203 | 4203 | | |
4204 | 4204 | | |
4205 | 4205 | | |
4206 | | - | |
| 4206 | + | |
4207 | 4207 | | |
4208 | 4208 | | |
4209 | 4209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1848 | 1848 | | |
1849 | 1849 | | |
1850 | 1850 | | |
1851 | | - | |
| 1851 | + | |
1852 | 1852 | | |
1853 | 1853 | | |
1854 | 1854 | | |
1855 | 1855 | | |
1856 | 1856 | | |
1857 | | - | |
| 1857 | + | |
1858 | 1858 | | |
1859 | 1859 | | |
1860 | 1860 | | |
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
1884 | | - | |
| 1884 | + | |
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | 1888 | | |
1889 | 1889 | | |
1890 | | - | |
| 1890 | + | |
1891 | 1891 | | |
1892 | 1892 | | |
1893 | 1893 | | |
| |||
0 commit comments