summaryrefslogtreecommitdiffstats
path: root/source/slang/type-layout.cpp
diff options
context:
space:
mode:
authorTim Foley <tfoleyNV@users.noreply.github.com>2017-10-30 11:17:20 -0700
committerGitHub <noreply@github.com>2017-10-30 11:17:20 -0700
commitc24c173101c2c124401af77d8c513a23efac3b7e (patch)
tree62878bd6a88f7535667c73beaa514aa69e8df869 /source/slang/type-layout.cpp
parent4ab545bcd0716cc3f2da432a921c1f53fdce7925 (diff)
Fix output for type cast when checking fails (#238)
There were some cases where we would try to emit an `ErrorType` to the output HLSL, which obviously isn't allowed. This change tries to avoid emitting error types, and instead use the original expression when it is available. I tried adding a test case for the change, but I can't convince Slang to output matching line numbers for the error message; it seems like more work is needed on that front.
Diffstat (limited to 'source/slang/type-layout.cpp')
0 files changed, 0 insertions, 0 deletions