Skip to content

Commit

Permalink
Simplify _doesCtorExpectInitializerListUsage function
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizhangNV committed Sep 19, 2024
1 parent 5401494 commit 203c628
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions source/slang/slang-check-decl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8296,10 +8296,7 @@ namespace Slang

static bool _doesCtorExpectInitializerListUsage(ConstructorDecl* ctor)
{
return ctor->containsOption(ConstructorTags::Synthesized)
&& ctor->getParameters().getCount() != 0
&& !allParamHaveInitExpr(ctor);
// return ctor->findModifier<SynthesizedModifier>();
return ctor->findModifier<SynthesizedModifier>();
}

template<typename T>
Expand Down

0 comments on commit 203c628

Please sign in to comment.