Skip to content

Commit

Permalink
Fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Dec 24, 2024
1 parent 76e5ec4 commit f6d65c8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/slang/ast/Compilation.h
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ class SLANG_EXPORT Compilation : public BumpAllocator {
private:
friend class Lookup;
friend class Scope;
friend class DiagnosticVisitor;
friend struct DiagnosticVisitor;

// Collected information about a resolved bind directive.
struct ResolvedBind {
Expand Down
2 changes: 2 additions & 0 deletions source/ast/symbols/BlockSymbols.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,8 @@ StatementBlockSymbol& StatementBlockSymbol::fromSyntax(const Scope& scope,
block->setAttributes(scope, syntax.attributes);
block->blocks = Statement::createAndAddBlockItems(*block, *syntax.statement,
/* labelHandled */ false);

SLANG_ASSERT(curr && first);
curr->addMember(*block);

return *first;
Expand Down

0 comments on commit f6d65c8

Please sign in to comment.