Skip to content

Commit

Permalink
fix compilation in IR
Browse files Browse the repository at this point in the history
  • Loading branch information
michele-nuzzi committed May 18, 2024
1 parent 220beff commit 7273ea3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ export function _modifyChildFromTo( parent: IRParentTerm | undefined, currentChi
{
if( parent === undefined )
{
throw new Error(
if( isIRTerm( currentChild ) )
parent = currentChild.parent as IRParentTerm;
else throw new Error(
"'_modifyChildFromTo' received an undefined parent"
);
}
Expand Down

0 comments on commit 7273ea3

Please sign in to comment.