Fix build related to emitTempNodes

Apparently these global flags changed from Module to Driver.  The
problematic commit came from an old pull request from before this
change.