[PATCH] Catch malformed inline assembly clobber constraints

Akira Hatanaka ahatanak at gmail.com
Wed Sep 3 18:06:23 PDT 2014


On Wed, Sep 3, 2014 at 5:32 PM, Eric Christopher <echristo at gmail.com> wrote:

> The testcase doesn't need either the triple or the data layout for an
> llvm-as test.
>
>
OK, I'll remove the triples and data layout.


> Also, I tried it, which llvm_unreachable? (I mean, it's obviously doing
> something wonky so it's not necessarily a bad patch, but I can't duplicate
> whatever problem you're seeing).
>
>
Sorry, my comment was misleading. If you compile the test case with "llc
-march=aarch64", llc terminates at MachineValueType.h:386.



> -eric
>
>
>
>
> On Wed, Sep 3, 2014 at 1:45 PM, Akira Hatanaka <ahatanak at gmail.com> wrote:
>
>> 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.
>>
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140903/a79ebced/attachment.html>


More information about the llvm-commits mailing list