GVN.cpp: Suppress a warning in D141712 [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2023 00:52:38 +0000 (09:52 +0900)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 26 Jan 2023 00:53:59 +0000 (09:53 +0900)
llvm/lib/Transforms/Scalar/GVN.cpp

index c01e9e5..e90db02 100644 (file)
@@ -1611,6 +1611,7 @@ bool GVNPass::PerformLoadPRE(LoadInst *Load, AvailValInBlkVect &ValuesPerBlock,
       CriticalEdgePredAndLoad.size();
   assert(NumUnavailablePreds != 0 &&
          "Fully available value should already be eliminated!");
+  (void)NumUnavailablePreds;
 
   // If we need to insert new load in multiple predecessors, reject it.
   // FIXME: If we could restructure the CFG, we could make a common pred with