diff --git a/src/coreclr/tools/superpmi/superpmi/superpmi.cpp b/src/coreclr/tools/superpmi/superpmi/superpmi.cpp index 4de5e8d2f65e2..c99f54c9cfc91 100644 --- a/src/coreclr/tools/superpmi/superpmi/superpmi.cpp +++ b/src/coreclr/tools/superpmi/superpmi/superpmi.cpp @@ -441,7 +441,7 @@ int __cdecl main(int argc, char* argv[]) mc->cr->dumpToConsole(); // Dump the compile results if doing debug logging } } - else if (res.Result == ReplayResult::Success) + else if (res.Result == ReplayResult::Error) { errorCount++; LogError("Method %d of size %d failed to load and compile correctly%s (%s).",