-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Give caml_send* arguments the correct types (#10498)
One of the arguments is a derived pointer. It must therefore be declared with type Addr. The derived pointer is live throughout a loop. If we let the Polling pass have its way, it inserts an Ipoll instruction in this loop, and the derived pointer is live across the Ipoll, which is wrong and rejected at compile-time. We instruct the Polling pass to not add poll points to caml_send* functions, just like it does not add poll points to caml_apply* functions. This fixes the issue and is safe, as caml_send* cannot cause an infinite loop by itself. Co-authored-by: Vincent Laviron <vincent.laviron@gmail.com> (cherry picked from commit e608b7c)
- Loading branch information
1 parent
0ae6c6a
commit 20d9aef
Showing
3 changed files
with
9 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
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