[PATCH] D117189: [AMDGPU] Fix error handling in asm constraint syntax
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 13 09:34:17 PST 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rGfc6af7e188cc: [AMDGPU] Fix error handling in asm constraint syntax (authored by rampitec).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117189/new/
https://reviews.llvm.org/D117189
Files:
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Index: llvm/lib/Target/AMDGPU/SIISelLowering.cpp
===================================================================
--- llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+++ llvm/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -11760,9 +11760,9 @@
if (RegName.consume_front("[")) {
uint32_t End;
bool Failed = RegName.consumeInteger(10, Idx);
- Failed &= !RegName.consume_front(":");
- Failed &= RegName.consumeInteger(10, End);
- Failed &= !RegName.consume_back("]");
+ Failed |= !RegName.consume_front(":");
+ Failed |= RegName.consumeInteger(10, End);
+ Failed |= !RegName.consume_back("]");
if (!Failed) {
uint32_t Width = (End - Idx + 1) * 32;
MCRegister Reg = RC->getRegister(Idx);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117189.399704.patch
Type: text/x-patch
Size: 771 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220113/fd08dd9c/attachment.bin>
More information about the llvm-commits
mailing list