FEXCore/IR: Fixes bug in IRDumper without specification

Didn't notice this in the previous PR, When DUMPIR=stderr without and
selection of where to place it in PASSMANAGERDUMPIR it was supposed to
put the dumper at the end of the passes.

We need to make sure that it it placed at the end of the passes rather
than current `it`.
This commit is contained in:
Ryan Houdek committed 2023-08-16 13:51:03 -07:00
1 parent f95ef7092c
commit fc12958095
1 file changed
+1 -1
+1 -1
View File
@@ -60,7 +60,7 @@ void PassManager::Finalize() {
if (PassManagerDumpIR() & FEXCore::Config::PassManagerDumpIR::AFTEROPT) {
if (!(PassManagerDumpIR() & FEXCore::Config::PassManagerDumpIR::AFTERPASS)) {
// Insert final IRDumper.
it = InsertAt(it, Debug::CreateIRDumper());
InsertAt(Passes.end(), Debug::CreateIRDumper());
}
}
}