[WebAssembly] Minor code simplification. NFC.
authorDan Gohman <dan433584@gmail.com>
Tue, 22 Dec 2015 23:39:16 +0000 (23:39 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 22 Dec 2015 23:39:16 +0000 (23:39 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256300 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/WebAssembly/WebAssemblyLowerBrUnless.cpp

index 846f6eb1e5cff24ec50b1854b3f7c8f3a377df80..b009a4e054ccd35935d4644cab1dedd0a2d20da5 100644 (file)
@@ -124,7 +124,7 @@ bool WebAssemblyLowerBrUnless::runOnMachineFunction(MachineFunction &MF) {
       assert(Inverted);
       BuildMI(MBB, MI, MI->getDebugLoc(), TII.get(WebAssembly::BR_IF))
           .addReg(Cond)
-          .addMBB(MI->getOperand(1).getMBB());
+          .addOperand(MI->getOperand(1));
       MBB.erase(MI);
     }
   }