From: Jakob Botsch Nielsen Date: Sun, 5 Feb 2023 16:54:05 +0000 (+0100) Subject: SPMI: Fix SpmiRecordsHelper::RestoreCORINFO_RUNTIME_LOOKUP (#81657) X-Git-Tag: accepted/tizen/unified/riscv/20231226.055536~4231 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=35bc561f733215451601287c48a835a2dfe0bae8;p=platform%2Fupstream%2Fdotnet%2Fruntime.git SPMI: Fix SpmiRecordsHelper::RestoreCORINFO_RUNTIME_LOOKUP (#81657) Fix #81637 --- diff --git a/src/coreclr/tools/superpmi/superpmi-shared/spmirecordhelper.h b/src/coreclr/tools/superpmi/superpmi-shared/spmirecordhelper.h index 17476cb..9ce89c2 100644 --- a/src/coreclr/tools/superpmi/superpmi-shared/spmirecordhelper.h +++ b/src/coreclr/tools/superpmi/superpmi-shared/spmirecordhelper.h @@ -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)