Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
slangbot committed Nov 12, 2024
1 parent 28b5a3b commit e2ec2fe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions source/slang/slang-ir-link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1829,8 +1829,11 @@ LinkedIR linkIR(CodeGenContext* codeGenContext)
auto entryPointMangledName = program->getEntryPointMangledName(entryPointIndex);
auto nameOverride = program->getEntryPointNameOverride(entryPointIndex);
auto entryPoint = program->getEntryPoint(entryPointIndex).get();
irEntryPoints.add(
specializeIRForEntryPoint(context, entryPointMangledName, entryPoint, nameOverride.getUnownedSlice()));
irEntryPoints.add(specializeIRForEntryPoint(
context,
entryPointMangledName,
entryPoint,
nameOverride.getUnownedSlice()));
}

// Layout information for global shader parameters is also required,
Expand Down
4 changes: 2 additions & 2 deletions source/slang/slang-ir-specialize.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2979,8 +2979,8 @@ IRInst* specializeGenericImpl(
builder->setInsertBefore(genericVal);

List<IRInst*> pendingWorkList;
SLANG_DEFER(for (Index ii = pendingWorkList.getCount() - 1; ii >= 0; ii--)
if(context) context->addToWorkList(pendingWorkList[ii]););
SLANG_DEFER(for (Index ii = pendingWorkList.getCount() - 1; ii >= 0; ii--) if (context)
context->addToWorkList(pendingWorkList[ii]););

// Now we will run through the body of the generic and
// clone each of its instructions into the global scope,
Expand Down

0 comments on commit e2ec2fe

Please sign in to comment.