Commit 6a565f4
committed
[AArch64] Fix generating a code with UB in NeonEmitter
When generating `arm_neon.h`, NeonEmitter outputs code that
violates strict aliasing rules (C23 6.5 Expressions #7,
C++23 7.2.1 Value category [basic.lval] #11).
This patch fixed the offending code by replacing it with
a call to `__builtin_bit_cast`.1 parent a2995cb commit 6a565f4
1 file changed
+3
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1592 | 1592 | | |
1593 | 1593 | | |
1594 | 1594 | | |
1595 | | - | |
1596 | | - | |
1597 | | - | |
1598 | | - | |
1599 | | - | |
1600 | | - | |
1601 | | - | |
1602 | | - | |
1603 | | - | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
1611 | 1598 | | |
1612 | | - | |
1613 | 1599 | | |
1614 | 1600 | | |
1615 | 1601 | | |
| |||
0 commit comments