Skip to content

Commit

Permalink
add deStat from emscripten optimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
kripken committed Nov 25, 2015
1 parent 9734a18 commit a1d8724
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/emscripten-optimizer/optimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,10 @@ enum AsmSign {

extern AsmSign detectSign(cashew::Ref node, cashew::IString minifiedFround);

inline cashew::Ref deStat(cashew::Ref node) {
if (node[0] == cashew::STAT) return node[1];
return node;
}

#endif // __optimizer_h__

0 comments on commit a1d8724

Please sign in to comment.