forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit53c8d6c
committed
Fix illegal attribute propagation in LLVM JIT.
Commit7255943 started copying more attributes from AttributeTemplateto the functions we generate on the fly. In the case of deformfunctions, which return void, this meant that "noundef", fromAttributeTemplate's return value (a Datum) was copied to a void type.Older LLVM releases were OK with that, but LLVM 18 crashes.Update our llvm_copy_attributes() function to skip copying the attributefor the return value, if the target function returns void.Thanks to Dmitry Dolgov for help chasing this down.Back-patch to all supported releases, like7255943.Reported-by: Pavel Stehule <pavel.stehule@gmail.com>Reviewed-by: Dmitry Dolgov <9erthalion6@gmail.com>Discussion:https://postgr.es/m/CAFj8pRACpVFr7LMdVYENUkScG5FCYMZDDdSGNU-tch%2Bw98OxYg%40mail.gmail.com1 parent8461424 commit53c8d6c
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
552 | 552 |
| |
553 | 553 |
| |
554 | 554 |
| |
555 |
| - | |
556 |
| - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
557 | 560 |
| |
558 | 561 |
| |
559 | 562 |
| |
|
0 commit comments
Comments
(0)