We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a1e770 commit 2f94a21Copy full SHA for 2f94a21
lib/Sema/CSDiagnostics.cpp
@@ -1008,7 +1008,7 @@ bool AssignmentFailure::diagnoseAsError() {
1008
// Otherwise, we cannot resolve this because the available setter candidates
1009
// are all mutating and the base must be mutating. If we dug out a
1010
// problematic decl, we can produce a nice tailored diagnostic.
1011
- if (auto *VD = dyn_cast_or_null<VarDecl>(choice->getDecl())) {
+ if (auto *VD = dyn_cast<VarDecl>(choice->getDecl())) {
1012
std::string message = "'";
1013
message += VD->getName().str().str();
1014
message += "'";
0 commit comments