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 51c5da0 commit 49878d4Copy full SHA for 49878d4
lib/Serialization/Deserialization.cpp
@@ -5306,7 +5306,7 @@ llvm::Error DeclDeserializer::deserializeDeclCommon() {
5306
5307
// Do a quick check to see if this attribute is a move only attribute. If
5308
// so, emit a nice error if we don't have experimental move only enabled.
5309
- if (Attr->getKind() == DeclAttrKind::DAK_MoveOnly &&
+ if (Attr && Attr->getKind() == DeclAttrKind::DAK_MoveOnly &&
5310
!MF.getContext().LangOpts.Features.contains(Feature::MoveOnly)) {
5311
MF.getContext().Diags.diagnose(
5312
SourceLoc(),
0 commit comments