summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index 1659a161b..f12d11bdf 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -12441,10 +12441,13 @@ bool SemanticsDeclAttributesVisitor::_synthesizeCtorSignature(StructDecl* struct
{
auto member = resultMembers[i];
auto parentAggDecl = getParentAggTypeDecl(member);
- ;
auto ctorParam = m_astBuilder->create<ParamDecl>();
ctorParam->type = (TypeExp)member->type;
+ if (auto atomicType = as<AtomicType>(ctorParam->type))
+ {
+ ctorParam->type.type = atomicType->getElementType();
+ }
if (!stopProcessingDefaultValues)
ctorParam->initExpr = _getParamDefaultValue(this, member);