[PATCH] Catch malformed inline assembly clobber constraints

Akira Hatanaka ahatanak at gmail.com
Wed Sep 3 13:45:22 PDT 2014


The attached patch adds a check to InlineAsm::ConstraintInfo::Parse which
checks that '{' immediately follows '~' in the inline assembly clobber
constraint. This enables catching the error in the test case earlier by
LLParser and printing a more helpful diagnostic, rather than terminating
when an llvm_unreachable is triggered.

This patch fixes rdar://problem/14206559.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/510ff3c6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: inline-asm-clobber1.patch
Type: application/octet-stream
Size: 1112 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/510ff3c6/attachment.obj>


More information about the llvm-commits mailing list