forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitc835c7f
committed
llvmjit: Work around bug in LLVM 3.9 causing crashes after7255943.
Unfortunately in LLVM 3.9 LLVMGetAttributeCountAtIndex(func, index)crashes when called with an index that has 0 attributes. Since there'sno way to work around this in the C API, add a small C++ wrapper doingso.The only reason this didn't fail before7255943 is that therealways are function attributes...Author: Andres Freund <andres@anarazel.de>Discussion:https://postgr.es/m/20201016001254.w2nfj7gd74jmb5in@alap3.anarazel.deBackpatch: 11-, like72559431 parent0ab7ca9 commitc835c7f
File tree
3 files changed
+42
-1
lines changed- src
- backend/jit/llvm
- include/jit
3 files changed
+42
-1
lines changedLines changed: 8 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 |
| - | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
343 | 350 |
| |
344 | 351 |
| |
345 | 352 |
| |
|
Lines changed: 32 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
19 | 26 |
| |
20 | 27 |
| |
21 | 28 |
| |
| |||
44 | 51 |
| |
45 | 52 |
| |
46 | 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 | + |
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
138 | 138 |
| |
139 | 139 |
| |
140 | 140 |
| |
| 141 | + | |
| 142 | + | |
141 | 143 |
| |
142 | 144 |
| |
143 | 145 |
| |
|
0 commit comments
Comments
(0)