]> granicus.if.org Git - llvm/commitdiff
Move if() to newline to stop ambiguity over whether it should be else if. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 29 Apr 2019 17:34:26 +0000 (17:34 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 29 Apr 2019 17:34:26 +0000 (17:34 +0000)
Reported in https://www.viva64.com/en/b/0629/

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359472 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

index 3721c1e057ecc9975685a7668470fbcc85683866..4c20cd2f0d34cf88b5d7cf0cba64193a10b18872 100644 (file)
@@ -5862,7 +5862,8 @@ void AMDGPUAsmParser::cvtDPP(MCInst &Inst, const OperandVector &Operands) {
       // VOP2b (v_add_u32, v_sub_u32 ...) dpp use "vcc" token.
       // Skip it.
       continue;
-    } if (isRegOrImmWithInputMods(Desc, Inst.getNumOperands())) {
+    }
+    if (isRegOrImmWithInputMods(Desc, Inst.getNumOperands())) {
       Op.addRegWithFPInputModsOperands(Inst, 2);
     } else if (Op.isDPPCtrl()) {
       Op.addImmOperands(Inst, 1);