forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbf1cfe7
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 parentdb4a028 commitbf1cfe7
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
565 | 565 |
| |
566 | 566 |
| |
567 | 567 |
| |
568 |
| - | |
569 |
| - | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
570 | 573 |
| |
571 | 574 |
| |
572 | 575 |
| |
|
0 commit comments
Comments
(0)