SPMI: Fix SpmiRecordsHelper::RestoreCORINFO_RUNTIME_LOOKUP (#81657)
authorJakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
Sun, 5 Feb 2023 16:54:05 +0000 (17:54 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 16:54:05 +0000 (17:54 +0100)
Fix #81637

src/coreclr/tools/superpmi/superpmi-shared/spmirecordhelper.h

index 17476cb..9ce89c2 100644 (file)
@@ -509,7 +509,7 @@ inline CORINFO_RUNTIME_LOOKUP SpmiRecordsHelper::RestoreCORINFO_RUNTIME_LOOKUP(
     runtimeLookup.indirectSecondOffset = lookup.indirectSecondOffset != 0;
     for (int i                   = 0; i < CORINFO_MAXINDIRECTIONS; i++)
         runtimeLookup.offsets[i] = (size_t)lookup.offsets[i];
-    return CORINFO_RUNTIME_LOOKUP();
+    return runtimeLookup;
 }
 
 inline Agnostic_CORINFO_LOOKUP SpmiRecordsHelper::StoreAgnostic_CORINFO_LOOKUP(CORINFO_LOOKUP* pLookup)