summaryrefslogtreecommitdiff
path: root/source/slang/slang-check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check.cpp')
-rw-r--r--source/slang/slang-check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp
index 275818614..5b2b2b132 100644
--- a/source/slang/slang-check.cpp
+++ b/source/slang/slang-check.cpp
@@ -234,7 +234,7 @@ namespace Slang
{
visitor.dispatch(stmt);
}
- catch(AbortCompilationException&) { throw; }
+ catch(const AbortCompilationException&) { throw; }
catch(...)
{
getSink()->noteInternalErrorLoc(stmt->loc);
@@ -249,7 +249,7 @@ namespace Slang
{
visitor.dispatch(expr);
}
- catch(AbortCompilationException&) { throw; }
+ catch(const AbortCompilationException&) { throw; }
catch(...)
{
getSink()->noteInternalErrorLoc(expr->loc);