]> granicus.if.org Git - clang/commit
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)
commit3f3358dc5aa5c4bb4378edd3ee8d2ecee1dea161
tree71ac516fe818d158382839ac87e8f64cb634b8f5
parentbbe33819d4b89d724a0ea4402c46f90511859652
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228052 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/DiagnosticSemaKinds.td
lib/Sema/SemaStmtAsm.cpp
test/Sema/attr-naked.cpp [new file with mode: 0644]