================ Comment at: lib/Sema/SemaStmtAsm.cpp:414 @@ +413,3 @@ + Diag(Id.getLocStart(), diag::err_asm_naked_parm_ref); + Diag(Func->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); + } ---------------- Do you need to ` Func->setInvalidDecl();` here too? http://reviews.llvm.org/D5183