summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index aa3ca889d..11b560d93 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -1909,7 +1909,7 @@ namespace Slang
{
if(!thisExpr->type.isLeftValue)
{
- getSink()->diagnose(thisExpr, Diagnostics::thisIsImmutableByDefault);
+ getSink()->diagnoseWithoutSourceView(thisExpr, Diagnostics::thisIsImmutableByDefault);
}
}
}
@@ -2130,7 +2130,7 @@ namespace Slang
diagnostic = &Diagnostics::implicitCastUsedAsLValue;
}
- getSink()->diagnose(
+ getSink()->diagnoseWithoutSourceView(
argExpr,
*diagnostic,
implicitCastExpr->arguments[pp]->type,