summaryrefslogtreecommitdiff
path: root/source/slang/mangle.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2018-01-18 12:49:59 -0800
committerGitHub <noreply@github.com>2018-01-18 12:49:59 -0800
commit2079b941bc5849b6ab33774fb90cefe9c2d624cb (patch)
tree6bba14a93d90a251c4e2f75381ddf71ea9a3bbca /source/slang/mangle.cpp
parent68f529af8d0eb8ec45a2d73e82c4ee372015ce01 (diff)
parent9eb8b4e187e8b4fc5394668d476ada0512ae4ccc (diff)
Merge pull request #371 from csyonghe/master
All compiler fixes to get ir branch work with falcor feature demo.
Diffstat (limited to 'source/slang/mangle.cpp')
-rw-r--r--source/slang/mangle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/mangle.cpp b/source/slang/mangle.cpp
index 1a412d041..29446d942 100644
--- a/source/slang/mangle.cpp
+++ b/source/slang/mangle.cpp
@@ -124,6 +124,12 @@ namespace Slang
{
emitQualifiedName(context, declRefType->declRef);
}
+ else if (auto arrType = dynamic_cast<ArrayExpressionType*>(type))
+ {
+ emitRaw(context, "a");
+ emitSimpleIntVal(context, arrType->ArrayLength);
+ emitType(context, arrType->baseType);
+ }
else
{
SLANG_UNEXPECTED("unimplemented case in mangling");