[objc] [fcp] only emit property_control tag when we have non-None property_control

Summary: Plugin can emit corrupt data when ObjCPropertyDecl == None

Reviewed By: ezgicicek, jvillard

Differential Revision: D25023778

fbshipit-source-id: 30b950f7a
master
Martin Trojer 4 years ago committed by Facebook GitHub Bot
parent 2b4c3fcbaa
commit 498da13cad

@ -2859,8 +2859,8 @@ void ASTExporter<ATDWriter>::VisitObjCPropertyDecl(const ObjCPropertyDecl *D) {
case ObjCPropertyDecl::Optional:
OF.emitSimpleVariant("Optional");
break;
case ObjCPropertyDecl::None:
llvm_unreachable("unreachable");
default:
OF.emitSimpleVariant("None");
break;
}
}

Loading…
Cancel
Save