diff options
| author | Yong He <yonghe@outlook.com> | 2018-05-11 10:51:11 -0400 |
|---|---|---|
| committer | Tim Foley <tfoleyNV@users.noreply.github.com> | 2018-05-11 07:51:11 -0700 |
| commit | 2d96e1f7db60865acd96bebbb7cc7298ae1ff688 (patch) | |
| tree | 7afb21febffdb014519ff0c9ab0a9bd4aaf978d6 | |
| parent | b0413c1a4f27ffdbf128048cc117a237b84d2747 (diff) | |
Fixes #559 (#560)
| -rw-r--r-- | source/slang/lower-to-ir.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/slang/lower-to-ir.cpp b/source/slang/lower-to-ir.cpp index ea82e4b70..03d6ad321 100644 --- a/source/slang/lower-to-ir.cpp +++ b/source/slang/lower-to-ir.cpp @@ -1058,9 +1058,7 @@ struct ValLoweringVisitor : ValVisitor<ValLoweringVisitor, LoweredValInfo, Lower IRType* visitNamedExpressionType(NamedExpressionType* type) { - return (IRType*) getSimpleVal(context, - emitDeclRef(context, type->declRef, - context->irBuilder->getTypeKind())); + return (IRType*)getSimpleVal(context, dispatchType(type->GetCanonicalType())); } IRType* visitBasicExpressionType(BasicExpressionType* type) |
