Skip to content

Commit 0b4ec5a

Browse files
authored
SPMI: Fix wrong SPMI replay result check (#93062)
Fix a bug introduced in #92824 that would SPMI to not show replay failures.
1 parent ade2459 commit 0b4ec5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/tools/superpmi/superpmi/superpmi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ int __cdecl main(int argc, char* argv[])
441441
mc->cr->dumpToConsole(); // Dump the compile results if doing debug logging
442442
}
443443
}
444-
else if (res.Result == ReplayResult::Success)
444+
else if (res.Result == ReplayResult::Error)
445445
{
446446
errorCount++;
447447
LogError("Method %d of size %d failed to load and compile correctly%s (%s).",

0 commit comments

Comments
 (0)