WebAssembly: fix syntax for br_if.
[oota-llvm.git] / lib / Target / WebAssembly / WebAssemblyInstrInfo.cpp
index 19a65dc2a2f0f26c2951dec96720d13a62a22aa8..a18357da19ea41a916de3ce661f35eed143caab6 100644 (file)
@@ -51,7 +51,7 @@ bool WebAssemblyInstrInfo::AnalyzeBranch(MachineBasicBlock &MBB,
     default:
       // Unhandled instruction; bail out.
       return true;
-    case WebAssembly::BRIF:
+    case WebAssembly::BR_IF_:
       if (HaveCond)
         return true;
       Cond.push_back(MI.getOperand(1));
@@ -104,7 +104,7 @@ unsigned WebAssemblyInstrInfo::InsertBranch(
     return 1;
   }
 
-  BuildMI(&MBB, DL, get(WebAssembly::BRIF))
+  BuildMI(&MBB, DL, get(WebAssembly::BR_IF_))
       .addMBB(TBB)
       .addOperand(Cond[0]);
   if (!FBB)