The check for code gen info is now a bit more robust.