[PATCH] Diagnose CXX "this" reference in functions with naked attr

Reid Kleckner rnk at google.com
Mon Feb 2 18:20:55 PST 2015


lgtm


================
Comment at: include/clang/Basic/DiagnosticSemaKinds.td:7178
@@ -7177,1 +7177,3 @@
+def err_asm_naked_this_ref : Error<
+  "`this' pointer references not allowed in naked functions">;
 def err_asm_naked_parm_ref : Error<
----------------
We don't do smart backtick quotes like this.

http://reviews.llvm.org/D7329

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list