Commenting.

This commit is contained in:
Jeff Young 2025-08-30 14:14:10 +01:00
parent acc7b1e508
commit ba84f50997

View File

@ -858,9 +858,9 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
// Function call's uop was generated inside TR_STRUCT_REF // Function call's uop was generated inside TR_STRUCT_REF
if( !node->uop ) if( !node->uop )
{ {
reportError( CST_CODEGEN, _( "Unknown parent of function parameters" ), node->srcPos );
// This function call is bare so we don't know who to apply it to // This function call is bare so we don't know who to apply it to
// Set a safe default value to exit gracefully with an error // Set a safe default value to exit gracefully with an error
reportError( CST_CODEGEN, _( "Unknown parent of function parameters" ), node->srcPos );
node->SetUop( TR_UOP_PUSH_VALUE, 0.0, EDA_UNITS::UNSCALED ); node->SetUop( TR_UOP_PUSH_VALUE, 0.0, EDA_UNITS::UNSCALED );
} }
@ -1101,7 +1101,6 @@ bool COMPILER::generateUCode( UCODE* aCode, CONTEXT* aPreflightContext )
{ {
stack.push_back( node->leaf[0] ); stack.push_back( node->leaf[0] );
node->leaf[0]->isVisited = true; node->leaf[0]->isVisited = true;
continue;
} }
else if( node->leaf[1] && !node->leaf[1]->isVisited ) else if( node->leaf[1] && !node->leaf[1]->isVisited )
{ {