diff options
Diffstat (limited to 'source/core/slang-visual-studio-compiler-util.cpp')
| -rw-r--r-- | source/core/slang-visual-studio-compiler-util.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/core/slang-visual-studio-compiler-util.cpp b/source/core/slang-visual-studio-compiler-util.cpp index 1a42e9b6e..8dcc97654 100644 --- a/source/core/slang-visual-studio-compiler-util.cpp +++ b/source/core/slang-visual-studio-compiler-util.cpp @@ -94,7 +94,7 @@ namespace Slang if (options.flags & CompileOptions::Flag::EnableExceptionHandling) { - if (options.sourceType == SourceType::CPP) + if (options.sourceLanguage == SLANG_SOURCE_LANGUAGE_CPP) { // https://docs.microsoft.com/en-us/cpp/build/reference/eh-exception-handling-model?view=vs-2019 // Assumes c functions cannot throw |
