guix/gnu/packages/patches/pnet-fix-line-number-info.patch
unmush 1b1e9917ad
gnu: Add pnet-git.
* gnu/packages/dotnet.scm (pnet-git): New variable.
* gnu/packages/patches/pnet-fix-line-number-info.patch,
gnu/packages/patches/pnet-fix-off-by-one.patch,
gnu/packages/patches/pnet-newer-libgc-fix.patch,
gnu/packages/patches/pnet-newer-texinfo-fix.patch: New patches.
* gnu/local.mk (dist_patch_DATA): Register new patches.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
Change-Id: Ic3e93dbaab24eb73fe9a35f711a710eed6a823a1
2024-12-22 15:37:33 +02:00

13 lines
507 B
Diff

diff --git a/codegen/cg_coerce.c b/codegen/cg_coerce.c
index 92d2f59a..c90ad5e2 100644
--- a/codegen/cg_coerce.c
+++ b/codegen/cg_coerce.c
@@ -1203,6 +1203,8 @@ int ILCoerce(ILGenInfo *info, ILNode *node, ILNode **parent,
!= ILMachineType_Void)
{
*parent = ILNode_CastSimple_create(node, constType);
+ yysetfilename(*parent, yygetfilename(node));
+ yysetlinenum(*parent, yygetlinenum(node));
return 1;
}
else if(indirect && GetIndirectConvertRules(info,fromType,toType,0,