A debug function start was not being recorded when the optimization level wasn't