Skip to content

Commit 582c19e

Browse files
committed
Remove invalid assert. Inner scope enumeration can happen multiple times if we re-visit the AST during byte code gen. The re-enumeration is valid, so just let it happen.
1 parent 65827af commit 582c19e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Runtime/ByteCode/Scope.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ class Scope
289289

290290
bool HasInnerScopeIndex() const { return innerScopeIndex != (uint)-1; }
291291
uint GetInnerScopeIndex() const { return innerScopeIndex; }
292-
void SetInnerScopeIndex(uint index) { Assert(innerScopeIndex == (uint)-1 || innerScopeIndex == index); innerScopeIndex = index; }
292+
void SetInnerScopeIndex(uint index) { innerScopeIndex = index; }
293293

294294
int AddScopeSlot();
295295

0 commit comments

Comments
 (0)