~ruther/guix-local

ref: b57b68aba645181b78bbdbef4ad908d60da03aa7 guix-local/gnu/packages/patches/pnet-fix-line-number-info.patch -rw-r--r-- 507 bytes
b57b68ab — Cayetano Santos gnu: open-logic: Move to hdl 30 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
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,