stage3 should do nothing if we're not optimizing
Fixes a simple oversight that doesn't currently matter,
but will when I shift passes from stage2 to stage3 in the near future.
@@ -974,7 +974,9 @@ public class Compiler extends AbstractCompiler implements ErrorHandler, SourceFi
checkState(!options.getInstrumentForCoverageOnly());
runInCompilerThread(
() -> {
+ if (options.shouldOptimize()) {
performFinalizations();
+ }
return null;
});
}
