From 203c6284150961c26aad5f6e9d439964774c83aa Mon Sep 17 00:00:00 2001 From: kaizhangNV Date: Thu, 19 Sep 2024 13:21:06 -0700 Subject: [PATCH] Simplify _doesCtorExpectInitializerListUsage function --- source/slang/slang-check-decl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp index 7d0a41094e..0b8373ec37 100644 --- a/source/slang/slang-check-decl.cpp +++ b/source/slang/slang-check-decl.cpp @@ -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(); + return ctor->findModifier(); } template