]> granicus.if.org Git - clang/commit
Disallow using function parameters in extended asm inputs or outputs in naked functio...
authorHans Wennborg <hans@hanshq.net>
Wed, 8 Oct 2014 01:58:02 +0000 (01:58 +0000)
committerHans Wennborg <hans@hanshq.net>
Wed, 8 Oct 2014 01:58:02 +0000 (01:58 +0000)
commit9e077ef0c26fb864b7c8794455d5690e0d021c26
tree4d7cb296d654ec9351b3d81927bf4054b8b27f0b
parent5fea933eaab58e4ca72b846e6dc07597ebb5ac4e
Disallow using function parameters in extended asm inputs or outputs in naked functions (PR21178)

Clang won't emit any prologues for such functions, so it would assert trying to
codegen the parameter references.

This patch makes Clang check the extended asm inputs and outputs for
references to function parameters.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@219272 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaStmtAsm.cpp
test/Sema/attr-naked.c