Commit 10e0d64
committed
CodeGen: set correct result for atomic compound expressions
Atomic compound expressions try to use atomicrmw if possible, but this
path doesn't set the Result variable, leaving it to crash in later code
if anything ever tries to use the result of the expression. This fixes
that issue by recalculating the new value based on the old one
atomically loaded.1 parent 0ec6a48 commit 10e0d64
2 files changed
+73
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2849 | 2849 | | |
2850 | 2850 | | |
2851 | 2851 | | |
2852 | | - | |
| 2852 | + | |
| 2853 | + | |
2853 | 2854 | | |
2854 | 2855 | | |
2855 | 2856 | | |
| |||
2858 | 2859 | | |
2859 | 2860 | | |
2860 | 2861 | | |
2861 | | - | |
| 2862 | + | |
| 2863 | + | |
2862 | 2864 | | |
2863 | 2865 | | |
2864 | | - | |
| 2866 | + | |
| 2867 | + | |
2865 | 2868 | | |
2866 | 2869 | | |
2867 | | - | |
| 2870 | + | |
| 2871 | + | |
2868 | 2872 | | |
2869 | 2873 | | |
2870 | | - | |
| 2874 | + | |
| 2875 | + | |
2871 | 2876 | | |
2872 | 2877 | | |
2873 | | - | |
| 2878 | + | |
| 2879 | + | |
2874 | 2880 | | |
2875 | 2881 | | |
2876 | 2882 | | |
2877 | 2883 | | |
2878 | | - | |
2879 | | - | |
| 2884 | + | |
| 2885 | + | |
2880 | 2886 | | |
2881 | 2887 | | |
2882 | 2888 | | |
2883 | | - | |
| 2889 | + | |
| 2890 | + | |
2884 | 2891 | | |
| 2892 | + | |
| 2893 | + | |
| 2894 | + | |
| 2895 | + | |
2885 | 2896 | | |
2886 | 2897 | | |
2887 | 2898 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
0 commit comments