Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/slang/slang-ast-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ FIDDLE()
namespace Slang
{

class ASTBuilder;
class ASTBuilder;
struct SemanticsVisitor;

FIDDLE(abstract)
Expand Down
8 changes: 2 additions & 6 deletions source/slang/slang-ast-builder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,7 @@ Decl* SharedASTBuilder::tryFindMagicDecl(const String& name)
static const size_t kASTBuilderMemoryArenaBlockSize = 2 * 1024 * 1024;

ASTBuilder::ASTBuilder(ASTBuilder* parent, String const& debugName)
: m_parent(parent)
, m_name(debugName)
, m_arena(kASTBuilderMemoryArenaBlockSize)
: m_parent(parent), m_name(debugName), m_arena(kASTBuilderMemoryArenaBlockSize)
{
SLANG_ASSERT(parent);
auto sharedASTBuilder = parent->getSharedASTBuilder();
Expand Down Expand Up @@ -367,9 +365,7 @@ ASTBuilder* ASTBuilder::_findAppropriateASTBuilderForVal(ValNodeDesc const& desc
// is in some kind of ancestor/descendent relationship
// with the builder being used to make the request.
//
SLANG_ASSERT(
nodeBuilder->isDescendentOf(this)
|| this->isDescendentOf(nodeBuilder));
SLANG_ASSERT(nodeBuilder->isDescendentOf(this) || this->isDescendentOf(nodeBuilder));

// If the builder we are looking at is deeper than the
// deepest builder we've seen previously, then we update
Expand Down
Loading