forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit27b57f8
committed
jit: Correct parameter type for generated expression evaluation functions.
clang only uses the 'i1' type for scalar booleans, not for pointers tobooleans (as the pointer might be pointing into a larger memoryallocation). Therefore a pointer-to-bool needs to the "storage" boolean.There's no known case of wrong code generation due to this, but it seems quitepossible that it could cause problems (see e.g.7255943).Author: Andres FreundDiscussion:https://postgr.es/m/20201207212142.wz5tnbk2jsaqzogb@alap3.anarazel.deBackpatch: 11-, where jit support was added1 parentb07490b commit27b57f8
1 file changed
+1
-3
lines changedLines changed: 1 addition & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
151 | 151 |
| |
152 | 152 |
| |
153 | 153 |
| |
154 |
| - | |
| 154 | + | |
155 | 155 |
| |
156 | 156 |
| |
157 | 157 |
| |
| |||
258 | 258 |
| |
259 | 259 |
| |
260 | 260 |
| |
261 |
| - | |
262 |
| - | |
263 | 261 |
| |
264 | 262 |
| |
265 | 263 |
| |
|
0 commit comments
Comments
(0)