[llvm] 2247f72 - [llvm] Cast to (void) the unused variable.

Alexander Belyaev via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 5 03:34:27 PDT 2020


Author: Alexander Belyaev
Date: 2020-07-05T12:33:58+02:00
New Revision: 2247f7218a3c1aed49d17d303d86ef101af1badd

URL: https://github.com/llvm/llvm-project/commit/2247f7218a3c1aed49d17d303d86ef101af1badd
DIFF: https://github.com/llvm/llvm-project/commit/2247f7218a3c1aed49d17d303d86ef101af1badd.diff

LOG: [llvm] Cast to (void) the unused variable.

Added: 
    

Modified: 
    llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
index 5de4d440e4f9..7f805b34b499 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
@@ -60,6 +60,7 @@ MachineBasicBlock *fixBrTable(MachineInstr &MI, MachineBasicBlock *MBB,
   const auto &TII = *MF.getSubtarget<WebAssemblySubtarget>().getInstrInfo();
   bool Analyzed = !TII.analyzeBranch(*HeaderMBB, TBB, FBB, Cond);
   assert(Analyzed && "Could not analyze jump header branches");
+  (void)Analyzed;
 
   // Here are the possible outcomes. '_' is nullptr, `J` is the jump table block
   // aka MBB, 'D' is the default block.


        


More information about the llvm-commits mailing list