fix an issue of "dce" that the compiler crashed on unused function
statements