Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-compiler-and-rts
compiler
Commits
61b1888f
Commit
61b1888f
authored
Oct 07, 2010
by
John van Groningen
Browse files
convert negative line numbers to 0,
because the frontend uses -1 for no line number, the backend 0
parent
6a6d5d60
Changes
1
Hide whitespace changes
Inline
Side-by-side
backendC/CleanCompilerSources/backend.c
View file @
61b1888f
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment