72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
c.env()->storeValue( identity, ANYTERM( _ ),
ValueToEIR( locVar ) );
DeclareValue( c, locVar, lv.index() );
return locVar;
}
Value DeclareLocalVarWithTypeInference( Context& c, const Term& typeTExpr, StringId name, const Value& initVal, LocationId locId )
{
auto cfg = GetCFG( c );
if( !cfg )
return PoisonValue();
auto bb = cfg->currentBB();
if( !bb )
|
|
|
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
c.env()->storeValue( identity, ANYTERM( _ ),
ValueToEIR( locVar ) );
DeclareValue( c, locVar, lv.index() );
return locVar;
}
Value DeclareLocalVarWithTypeInference( const Context& c, const Term& typeTExpr, StringId name, const Value& initVal, LocationId locId )
{
auto cfg = GetCFG( c );
if( !cfg )
return PoisonValue();
auto bb = cfg->currentBB();
if( !bb )
|