summaryrefslogtreecommitdiffstats
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp
index d78f3321a..8ad0bc9f5 100644
--- a/source/slang/mangle.cpp
+++ b/source/slang/mangle.cpp
@@ -144,6 +144,15 @@ namespace Slang
emitSimpleIntVal(context, arrType->ArrayLength);
emitType(context, arrType->baseType);
}
+ else if( auto taggedUnionType = dynamic_cast<TaggedUnionType*>(type) )
+ {
+ emitRaw(context, "u");
+ for( auto caseType : taggedUnionType->caseTypes )
+ {
+ emitType(context, caseType);
+ }
+ emitRaw(context, "U");
+ }
else
{
SLANG_UNEXPECTED("unimplemented case in mangling");