summaryrefslogtreecommitdiff
path: root/source/slang/check.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-07-12 14:52:21 -0700
committerGitHub <noreply@github.com>2017-07-12 14:52:21 -0700
commit9058358792fa393e0e92af80f24a54a037aa9691 (patch)
tree156c36903426a4f18f0e4c857d9d9eb987459789 /source/slang/check.cpp
parent6101e483ae8ea9e10db2b5a9423af3cc7fafb710 (diff)
parent02f77bbf12981abe376b2d5987684224a50ae4b2 (diff)
Merge pull request #80 from tfoleyNV/falcor-work
Fixes for shader cross-compilation
Diffstat (limited to 'source/slang/check.cpp')
-rw-r--r--source/slang/check.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/slang/check.cpp b/source/slang/check.cpp
index b87f7c6bc..b175b7f86 100644
--- a/source/slang/check.cpp
+++ b/source/slang/check.cpp
@@ -2540,7 +2540,11 @@ namespace Slang
if (!type.IsLeftValue)
{
- if (!isRewriteMode())
+ if (type->As<ErrorType>())
+ {
+ // Don't report an l-value issue on an errorneous expression
+ }
+ else if (!isRewriteMode())
{
getSink()->diagnose(expr, Diagnostics::assignNonLValue);
}