[Git][ghc/ghc][master] rts: explicitly store return value of ccall checkClosure to prevent type error (#22617)
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Wed Dec 21 19:32:10 UTC 2022
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
df7bc6b3 by Ying-Ruei Liang (TheKK) at 2022-12-21T14:31:54-05:00
rts: explicitly store return value of ccall checkClosure to prevent type error (#22617)
- - - - -
1 changed file:
- rts/ContinuationOps.cmm
Changes:
=====================================
rts/ContinuationOps.cmm
=====================================
@@ -166,11 +166,12 @@ INFO_TABLE_FUN(stg_CONTINUATION,0,0,CONTINUATION,"CONTINUATION","CONTINUATION",2
// see Note [Continuations overview] in Continuation.c
stg_CONTINUATION_apply // explicit stack
{
+ W_ _unused;
P_ cont, io;
cont = R1;
io = R2;
- IF_DEBUG(sanity, ccall checkClosure(cont "ptr"));
+ IF_DEBUG(sanity, (_unused) = ccall checkClosure(cont "ptr"));
W_ new_stack_words, apply_mask_frame, mask_frame_offset;
new_stack_words = StgContinuation_stack_size(cont);
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/df7bc6b36d16e91f3e9e96e9542885e544bbf4d0
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/df7bc6b36d16e91f3e9e96e9542885e544bbf4d0
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20221221/8cbf8007/attachment.html>
More information about the ghc-commits
mailing list