summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ast-support-types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ast-support-types.cpp')
-rw-r--r--source/slang/slang-ast-support-types.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/slang/slang-ast-support-types.cpp b/source/slang/slang-ast-support-types.cpp
index 3ac352f0a..1f5f4f8b2 100644
--- a/source/slang/slang-ast-support-types.cpp
+++ b/source/slang/slang-ast-support-types.cpp
@@ -15,6 +15,10 @@ QualType::QualType(Type* type)
{
isLeftValue = true;
}
+ else if (as<ConstRefType>(type))
+ {
+ isLeftValue = false;
+ }
}
void removeModifier(ModifiableSyntaxNode* syntax, Modifier* toRemove)