From 7de698d045093d33ec2b8f2e20eccbea0d452a31 Mon Sep 17 00:00:00 2001 From: johnvg Date: Thu, 7 Oct 2010 10:53:13 +0000 Subject: convert negative line numbers to 0, because the frontend uses -1 for no line number, the backend 0 git-svn-id: https://svn.cs.ru.nl/repos/clean-compiler/trunk@1803 1f8540f1-abd5-4d5b-9d24-4c5ce8603e2d --- backendC/CleanCompilerSources/backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backendC') diff --git a/backendC/CleanCompilerSources/backend.c b/backendC/CleanCompilerSources/backend.c index b309c13..8c24006 100644 --- a/backendC/CleanCompilerSources/backend.c +++ b/backendC/CleanCompilerSources/backend.c @@ -2403,7 +2403,7 @@ BERuleAlt (int line, BENodeDefP lhsDefs, BENodeP lhs, BENodeDefP rhsDefs, BEStri alt->alt_lhs_defs = CollectNodeDefs (lhs, lhsDefs); alt->alt_rhs_root = rhs; alt->alt_rhs_defs = rhsDefs; - alt->alt_line = line; + alt->alt_line = line<0 ? 0 : line; alt->alt_kind = Contractum; alt->alt_strict_node_ids = rhsStrictNodeIds; @@ -2428,7 +2428,7 @@ BECodeAlt (int line, BENodeDefP lhsDefs, BENodeP lhs, BECodeBlockP codeBlock) alt->alt_lhs_defs = CollectNodeDefs (lhs, lhsDefs); alt->alt_rhs_code = codeBlock; alt->alt_rhs_defs = NULL; - alt->alt_line = line; + alt->alt_line = line<0 ? 0 : line; alt->alt_kind = ExternalCall; alt->alt_strict_node_ids = NULL; -- cgit v1.2.3