[PATCH] Disallow using function parameters in extended asm inputs or outputs in naked functions (PR21178)
Hans Wennborg
hans at chromium.org
Mon Oct 6 19:55:21 PDT 2014
Hi rnk,
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.
It is probably still possible to shoot oneself in the foot since other arbitrary expressions are allowed there :/
http://reviews.llvm.org/D5640
Files:
lib/Sema/SemaStmtAsm.cpp
test/Sema/attr-naked.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5640.14487.patch
Type: text/x-patch
Size: 3387 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141007/b0868a48/attachment.bin>
More information about the cfe-commits
mailing list