================ @@ -7858,20 +7858,19 @@ bool AArch64AsmParser::parseDirectiveAeabiSubSectionHeader(SMLoc L) { Optionality); return true; } - if (HasActiveSubsection && - (SubsectionName == ActiveSubsection->VendorName)) { - if (IsOptional != ActiveSubsection->IsOptional) { + if (SubsectionExists) { + if (IsOptional != ExistingSubsection->IsOptional) { Error(Parser.getTok().getLoc(), "optionality mismatch! subsection '" + SubsectionName + "' already exists with optionality defined as '" + - Twine(ActiveSubsection->IsOptional) + "' and not '" + + Twine(ExistingSubsection->IsOptional) + "' and not '" + Twine(IsOptional) + "' (0: required, 1: optional)"); ---------------- sivan-shani wrote:
fixed, also for type. https://github.com/llvm/llvm-project/pull/118771 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits