-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug when serializing bare lambdas (#4486)
A bug in the handling of serializing bare lambdas was introduced when we updated to LLVM 15. This commit contains the fix. Joe wrote the fix during a sync call after I identified the offending function during triage of a Red reported issue. Closes #4479
- Loading branch information
1 parent
78d7744
commit c0f781e
Showing
3 changed files
with
17 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Fix esoteric bug with serializing bare lambdas | ||
|
||
Almost no one uses bare lambdas. And even fewer folks end up passing them through the Pony serialization code. So, of course, Red Davies did just that. And of course, he found a bug. | ||
|
||
When we switched to LLVM 15 in 0.54.1, we had to account for a rather large change with how LLVM handles pointer and types. In the process of doing that update, a mistake was made and serializing of bare lambdas was broken. | ||
|
||
We've made the fix and introduced a regression test. Enjoy your fix Red! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
actor Main | ||
new create(env: Env) => None | ||
let cb: Callbacks = Callbacks | ||
|
||
class Callbacks | ||
var cbi: @{(): None} | ||
|
||
new create() => | ||
cbi = @{() => None} |