[PATCH] D60108: [os_log] Mark os_log_helper `nounwind`

Akira Hatanaka via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 29 18:02:40 PDT 2020


ahatanak added inline comments.


================
Comment at: test/CodeGenObjCXX/os_log.mm:3
+// RUN:   -fexceptions -fcxx-exceptions -O1 | FileCheck %s
+
+// Check that no EH cleanup is emitted around the call to __os_log_helper.
----------------
Sorry for the late feedback.

Can we pass `-O0` instead of `-O1` to avoid running the optimization passes and just check that the helper function has attribute `nounwind`? I haven't checked, but I suspect there are already tests in llvm that check `SimplifyCFG` turns `nounwind` invokes to calls.

I'm cleaning up this file and `os_log.m` in preparation for adding more test cases.


Repository:
  rC Clang

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

https://reviews.llvm.org/D60108





More information about the cfe-commits mailing list