Fix unused variable warning introduced in r244314
authorSilviu Baranga <silviu.baranga@arm.com>
Fri, 7 Aug 2015 12:05:46 +0000 (12:05 +0000)
committerSilviu Baranga <silviu.baranga@arm.com>
Fri, 7 Aug 2015 12:05:46 +0000 (12:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244315 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMISelLowering.cpp

index 11add93dc6cae9dc1acce166399de7f9f8fc62dd..ea0dd6b2a1cd4eb51e0fcd5788b398f2dc0468f6 100644 (file)
@@ -5685,8 +5685,10 @@ SDValue ARMTargetLowering::ReconstructShuffle(SDValue Op,
   }
 
   // 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);