From 0b4ec5a1e460f5e17baa49db3669dada4a8f1ca4 Mon Sep 17 00:00:00 2001 From: Jakob Botsch Nielsen Date: Thu, 5 Oct 2023 17:15:38 +0200 Subject: [PATCH] SPMI: Fix wrong SPMI replay result check (#93062) Fix a bug introduced in #92824 that would SPMI to not show replay failures. --- src/coreclr/tools/superpmi/superpmi/superpmi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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).",