Index: llvm/lib/Target/AMDGPU/SIISelLowering.cpp =================================================================== --- llvm/lib/Target/AMDGPU/SIISelLowering.cpp +++ llvm/lib/Target/AMDGPU/SIISelLowering.cpp @@ -11745,9 +11745,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);