diff options
| author | Tim Foley <tfoleyNV@users.noreply.github.com> | 2017-07-12 14:52:21 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-07-12 14:52:21 -0700 |
| commit | 9058358792fa393e0e92af80f24a54a037aa9691 (patch) | |
| tree | 156c36903426a4f18f0e4c857d9d9eb987459789 /source/slang/check.cpp | |
| parent | 6101e483ae8ea9e10db2b5a9423af3cc7fafb710 (diff) | |
| parent | 02f77bbf12981abe376b2d5987684224a50ae4b2 (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.cpp | 6 |
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); } |
