Diagnose CXX 'this' pointer reference in funcs with naked attr
authorWeiming Zhao <weimingz@codeaurora.org>
Tue, 3 Feb 2015 22:35:58 +0000 (22:35 +0000)
committerWeiming Zhao <weimingz@codeaurora.org>
Tue, 3 Feb 2015 22:35:58 +0000 (22:35 +0000)
commit71ac240620c4fedb6e49c302c490e99bb2d37eb4
tree7e77100160781705607098aa9d51d08dfffc1970
parentab1dc2d54db5fc2ad4ee748745420eac844a5ea3
Diagnose CXX 'this' pointer reference in funcs with naked attr

Clang asserts for this pointer reference in asms of naked functions.
This patch diagnoses if this pointer reference is used.

Differential Revision: http://reviews.llvm.org/D7329

llvm-svn: 228052
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaStmtAsm.cpp
clang/test/Sema/attr-naked.cpp [new file with mode: 0644]