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 2634 2634 if (AsmLabelAttr *OldA = Old->getAttr<AsmLabelAttr>()) { 2635 2635 if (OldA->getLabel() != NewA->getLabel()) { 2636 2636 // 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); 2639 2639 } 2640 2640 } else if (Old->isUsed()) { 2641 2641 // This redeclaration adds an __asm__ label to a declaration that has