diff options
| -rw-r--r-- | source/slang/slang-ir-legalize-types.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/slang/slang-ir-legalize-types.cpp b/source/slang/slang-ir-legalize-types.cpp index 172171912..9b857f899 100644 --- a/source/slang/slang-ir-legalize-types.cpp +++ b/source/slang/slang-ir-legalize-types.cpp @@ -2149,6 +2149,12 @@ static LegalVal legalizeInst( // This case should only happen when compiling for a target that does not support // GpuForeach return LegalVal(); + case kIROp_StructuredBufferLoad: + // empty types are removed, so we need to make sure that we're still + // loading a none type when we try and load from a to-be-optimized + // out structured buffer + SLANG_ASSERT(type.flavor == LegalType::Flavor::none); + return LegalVal(); default: // TODO: produce a user-visible diagnostic here SLANG_UNEXPECTED("non-simple operand(s)!"); |
