[AMDGPU] Fix error handling in asm constraint syntax
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 13 Jan 2022 07:45:27 +0000 (23:45 -0800)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Thu, 13 Jan 2022 17:33:50 +0000 (09:33 -0800)
commitfc6af7e188cc426b13d175266620e831c986798a
tree74f854aaf773c2ef273740bf6026b70aacf80664
parent67151d029bdb933c006535f94bd3e625307a6cfa
[AMDGPU] Fix error handling in asm constraint syntax

I believe this is unexploitable because in either case the result
will be 'couldn't allocate register for constraint' error message,
but error code checking is clearly wrong.

Differential Revision: https://reviews.llvm.org/D117189
llvm/lib/Target/AMDGPU/SIISelLowering.cpp