Fix compiler regression when generating debug code introduced by the changes to the compiler stages