[PATCH] D15599: [CodeGen] Fix a crash that occurs when attribute "naked" is attached to a c++ member function

Akira Hatanaka via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 15 11:41:32 PDT 2016


ahatanak updated this revision to Diff 50759.
ahatanak added a comment.

Address review comments.

- Rewrite cleanupNakedFunction.
- Fix test case attr-naked.cpp. Check that the thunk function doesn't get removed when the virtual function is marked "naked".


http://reviews.llvm.org/D15599

Files:
  lib/CodeGen/CGCall.cpp
  lib/CodeGen/CGStmt.cpp
  lib/CodeGen/CGVTables.cpp
  lib/CodeGen/CodeGenFunction.cpp
  lib/CodeGen/CodeGenFunction.h
  test/CodeGen/attr-naked.c
  test/CodeGenCXX/attr-naked.cpp
  test/CodeGenCXX/ms-inline-asm-return.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15599.50759.patch
Type: text/x-patch
Size: 9243 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160315/23610d40/attachment-0001.bin>


More information about the cfe-commits mailing list