Skip to content

Commit

Permalink
runtime/air_node: Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
lhmouse committed Oct 23, 2020
1 parent c3e004c commit 0fc9260
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions asteria/src/runtime/air_node.cpp
Expand Up @@ -962,14 +962,10 @@ struct AIR_Traits_glvalue_to_prvalue
AIR_Status
execute(Executive_Context& ctx)
{
// If the current reference is a constant or temporary,
// don't do anything.
// If the current reference is a constant or temporary, don't do anything.
auto& self = ctx.stack().mut_back();
if(self.is_prvalue())
return air_status_next;

// Convert the result to a temporary.
self.mutate_into_temporary();
if(!self.is_prvalue())
self.mutate_into_temporary();
return air_status_next;
}
};
Expand Down

0 comments on commit 0fc9260

Please sign in to comment.