[PATCH] D43821: [SemaCXX] _Pragma("clang optimize off") not affecting lambda.

Erich Keane via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 6 06:51:41 PST 2018


erichkeane added inline comments.


================
Comment at: lib/Sema/SemaDecl.cpp:12598
+    // have to apply optnone due to a pragma.
+    AddRangeBasedOptnone(FD);
+
----------------
Should thi sonly happen if this is a definition?  Additionally, does this negate the need for the other call to this in ActOnFunctionDeclarator?


Repository:
  rC Clang

https://reviews.llvm.org/D43821





More information about the cfe-commits mailing list