[PATCH] Don't emit prologues/epilogues for naked functions (PR18791, PR20028)

Nico Weber thakis at chromium.org
Wed Sep 3 19:42:52 PDT 2014


================
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






More information about the cfe-commits mailing list