@@ -4024,7 +4024,7 @@ class ByteCodeBufferReader
4024
4024
current = ReadDeferredStubs (current, cache, nestedCount, &deferredStubs, true );
4025
4025
}
4026
4026
4027
- Field ( ScopeInfo*) scopeInfo = nullptr ;
4027
+ ScopeInfo* scopeInfo = nullptr ;
4028
4028
if (definedFields->has_scopeInfo )
4029
4029
{
4030
4030
Assert (attributes & (FunctionInfo::Attributes::DeferredParse | FunctionInfo::Attributes::CanDefer));
@@ -4381,7 +4381,7 @@ class ByteCodeBufferReader
4381
4381
return S_OK;
4382
4382
}
4383
4383
4384
- const byte* ReadOneScopeInfo (const byte* current, ByteCodeCache* cache, Field( ScopeInfo*) * scopeInfo)
4384
+ const byte* ReadOneScopeInfo (const byte* current, ByteCodeCache* cache, ScopeInfo** scopeInfo)
4385
4385
{
4386
4386
int symbolCount = 0 ;
4387
4387
current = ReadInt32 (current, &symbolCount);
@@ -4440,13 +4440,15 @@ class ByteCodeBufferReader
4440
4440
4441
4441
if (hasParent)
4442
4442
{
4443
- return ReadScopeInfo (current, cache, &((*scopeInfo)->parent ));
4443
+ ScopeInfo* parent = nullptr ;
4444
+ current = ReadScopeInfo (current, cache, &parent);
4445
+ (*scopeInfo)->parent = parent;
4444
4446
}
4445
4447
4446
4448
return current;
4447
4449
}
4448
4450
4449
- const byte* ReadScopeInfo (const byte* current, ByteCodeCache* cache, Field( ScopeInfo*) * scopeInfo)
4451
+ const byte* ReadScopeInfo (const byte* current, ByteCodeCache* cache, ScopeInfo** scopeInfo)
4450
4452
{
4451
4453
LocalScopeInfoId localScopeInfoId;
4452
4454
current = ReadUInt32 (current, (uint*)&localScopeInfoId);
0 commit comments