Ticket #58677: patch-clang-7.0-allow-asm-redefinition.patch

File patch-clang-7.0-allow-asm-redefinition.patch, 741 bytes (added by kencu (Ken), 3 years ago)
  • (a) a/tools/clang/lib/Sema/SemaDecl.cpp.orig vs. (b) b/tools/clang/lib/Sema/SemaDecl.cpp

    a b  
    26342634    if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) {
    26352635      if (OldA->getLabel() != NewA->getLabel()) {
    26362636        // This redeclaration changes __asm__ label.
    2637         Diag(New->getLocation(), diag::err_different_asm_label);
    2638         Diag(OldA->getLocation(), diag::note_previous_declaration);
     2637        // Diag(New->getLocation(), diag::err_different_asm_label);
     2638        // Diag(OldA->getLocation(), diag::note_previous_declaration);
    26392639      }
    26402640    } else if (Old->isUsed()) {
    26412641      // This redeclaration adds an __asm__ label to a declaration that has