Commit 0f73248
authored
[clang][bytecode] Fix getting pointer element type in __builtin_memcmp (llvm#130485)
When such a pointer is heap allocated, the type we get is a pointer
type. Take the pointee type in that case.1 parent d84dc8f commit 0f73248
File tree
2 files changed
+27
-2
lines changed- clang
- lib/AST/ByteCode
- test/AST/ByteCode
2 files changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1881 | 1881 | | |
1882 | 1882 | | |
1883 | 1883 | | |
| 1884 | + | |
| 1885 | + | |
| 1886 | + | |
| 1887 | + | |
| 1888 | + | |
| 1889 | + | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
1884 | 1894 | | |
1885 | 1895 | | |
1886 | 1896 | | |
1887 | | - | |
1888 | | - | |
| 1897 | + | |
| 1898 | + | |
1889 | 1899 | | |
1890 | 1900 | | |
1891 | 1901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1352 | 1352 | | |
1353 | 1353 | | |
1354 | 1354 | | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
1355 | 1370 | | |
1356 | 1371 | | |
1357 | 1372 | | |
| |||
0 commit comments