diff options
Diffstat (limited to 'source/slang/slang-compiler.cpp')
| -rw-r--r-- | source/slang/slang-compiler.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/source/slang/slang-compiler.cpp b/source/slang/slang-compiler.cpp index 16d9a5546..07bfaacc9 100644 --- a/source/slang/slang-compiler.cpp +++ b/source/slang/slang-compiler.cpp @@ -1395,18 +1395,8 @@ SlangResult dissassembleDXILUsingDXC( } // Set the source type - switch (rawSourceLanguage) - { - case SourceLanguage::C: options.sourceType = DownstreamCompiler::SourceType::C; break; - case SourceLanguage::CPP: options.sourceType = DownstreamCompiler::SourceType::CPP; break; - case SourceLanguage::CUDA: options.sourceType = DownstreamCompiler::SourceType::CUDA; break; - default: - { - SLANG_ASSERT(!"Unhandled source language"); - return SLANG_FAIL; - } - } - + options.sourceLanguage = SlangSourceLanguage(rawSourceLanguage); + // Disable exceptions and security checks options.flags &= ~(CompileOptions::Flag::EnableExceptionHandling | CompileOptions::Flag::EnableSecurityChecks); |
