forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc8a2bb0
committed
llvmjit: Also copy parameter / return value attributes from template functions.
Previously we only copied the function attributes. That caused problems atleast on s390x: Because we didn't copy the 'zeroext' attribute forExecAggTransReparent()'s *IsNull parameters, expressions invoking it didn'tensure that the upper bytes of the registers were zeroed. In the - relativelyrare - cases where not, ExecAggTransReparent() wrongly ended up in thenewValueIsNull branch due to the register not being zero. Subsequently causinga crash.It's quite possible that this would cause problems on other platforms, and inother places than just ExecAggTransReparent() on s390x.Thanks to Christoph (and the Debian project) for providing me with access to as390x machine, allowing me to debug this.Reported-By: Christoph BergAuthor: Andres FreundDiscussion:https://postgr.es/m/20201015083246.kie5726xerdt3ael@alap3.anarazel.deBackpatch: 11-, where JIT was added1 parentf915453 commitc8a2bb0
1 file changed
+32
-12
lines changedLines changed: 32 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
333 |
| - | |
| 333 | + | |
| 334 | + | |
334 | 335 |
| |
335 |
| - | |
336 |
| - | |
| 336 | + | |
| 337 | + | |
337 | 338 |
| |
338 | 339 |
| |
339 |
| - | |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
343 |
| - | |
| 342 | + | |
344 | 343 |
| |
345 | 344 |
| |
346 |
| - | |
| 345 | + | |
347 | 346 |
| |
348 |
| - | |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
353 | 373 |
| |
354 | 374 |
| |
355 | 375 |
| |
|
0 commit comments
Comments
(0)