summaryrefslogtreecommitdiff
path: root/source/compiler-core
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-06-13 16:50:35 -0700
committerGitHub <noreply@github.com>2022-06-13 16:50:35 -0700
commita5422d4f8c43962147696e3b6b22d586133b9a4f (patch)
treeac7541219ec1ea789c8a470471c8b37fbc4ac29e /source/compiler-core
parentb0c7eb885dac6b609a46a961feb71d2f983a0d76 (diff)
Follow up on Language Server Improvement (#2275)
* Fix typo and improve parser recovery. * Add search path configuration. Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/compiler-core')
-rw-r--r--source/compiler-core/slang-diagnostic-sink.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/compiler-core/slang-diagnostic-sink.cpp b/source/compiler-core/slang-diagnostic-sink.cpp
index c934157d2..0110b16d7 100644
--- a/source/compiler-core/slang-diagnostic-sink.cpp
+++ b/source/compiler-core/slang-diagnostic-sink.cpp
@@ -570,7 +570,7 @@ void DiagnosticSink::diagnoseImpl(DiagnosticInfo const& info, const UnownedStrin
m_parentSink->diagnoseImpl(info, formattedMessage);
}
- if (getEffectiveMessageSeverity(info) >= Severity::Fatal)
+ if (info.severity >= Severity::Fatal)
{
// TODO: figure out a better policy for aborting compilation
SLANG_ABORT_COMPILATION("");