[llvm] r244315 - Fix unused variable warning introduced in r244314

Silviu Baranga via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 7 05:05:46 PDT 2015


Author: sbaranga
Date: Fri Aug  7 07:05:46 2015
New Revision: 244315

URL: http://llvm.org/viewvc/llvm-project?rev=244315&view=rev
Log:
Fix unused variable warning introduced in r244314

Modified:
    llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp

Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=244315&r1=244314&r2=244315&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Fri Aug  7 07:05:46 2015
@@ -5685,8 +5685,10 @@ SDValue ARMTargetLowering::ReconstructSh
   }
 
   // Final sanity check before we try to actually produce a shuffle.
-  for (auto Src : Sources)
-    assert(Src.ShuffleVec.getValueType() == ShuffleVT);
+  DEBUG(
+    for (auto Src : Sources)
+      assert(Src.ShuffleVec.getValueType() == ShuffleVT);
+  );
 
   // The stars all align, our next step is to produce the mask for the shuffle.
   SmallVector<int, 8> Mask(ShuffleVT.getVectorNumElements(), -1);




More information about the llvm-commits mailing list