steplong added inline comments.

================
Comment at: clang/lib/CodeGen/CGCall.cpp:2169
+    HasOptnone = TargetDecl->hasAttr<OptimizeNoneAttr>() ||
+                 (TargetDecl->hasAttr<OptimizeAttr>() &&
+                  TargetDecl->getAttr<OptimizeAttr>()->getLevel() == "0");
----------------
I don't think this is the most ergonomic way. Let me know if you have a better 
idea of doing this


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126984/new/

https://reviews.llvm.org/D126984

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to