Skip to content

Commit 92509d2

Browse files
committed
Fix xplat build
1 parent 0c7acf8 commit 92509d2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

lib/Runtime/ByteCode/ByteCodeSerializer.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4024,7 +4024,7 @@ class ByteCodeBufferReader
40244024
current = ReadDeferredStubs(current, cache, nestedCount, &deferredStubs, true);
40254025
}
40264026

4027-
Field(ScopeInfo*) scopeInfo = nullptr;
4027+
ScopeInfo* scopeInfo = nullptr;
40284028
if (definedFields->has_scopeInfo)
40294029
{
40304030
Assert(attributes & (FunctionInfo::Attributes::DeferredParse | FunctionInfo::Attributes::CanDefer));
@@ -4381,7 +4381,7 @@ class ByteCodeBufferReader
43814381
return S_OK;
43824382
}
43834383

4384-
const byte* ReadOneScopeInfo(const byte* current, ByteCodeCache* cache, Field(ScopeInfo*)* scopeInfo)
4384+
const byte* ReadOneScopeInfo(const byte* current, ByteCodeCache* cache, ScopeInfo** scopeInfo)
43854385
{
43864386
int symbolCount = 0;
43874387
current = ReadInt32(current, &symbolCount);
@@ -4440,13 +4440,15 @@ class ByteCodeBufferReader
44404440

44414441
if (hasParent)
44424442
{
4443-
return ReadScopeInfo(current, cache, &((*scopeInfo)->parent));
4443+
ScopeInfo* parent = nullptr;
4444+
current = ReadScopeInfo(current, cache, &parent);
4445+
(*scopeInfo)->parent = parent;
44444446
}
44454447

44464448
return current;
44474449
}
44484450

4449-
const byte* ReadScopeInfo(const byte* current, ByteCodeCache* cache, Field(ScopeInfo*)* scopeInfo)
4451+
const byte* ReadScopeInfo(const byte* current, ByteCodeCache* cache, ScopeInfo** scopeInfo)
44504452
{
44514453
LocalScopeInfoId localScopeInfoId;
44524454
current = ReadUInt32(current, (uint*)&localScopeInfoId);

0 commit comments

Comments
 (0)