[RewriteStatepointsForGC] Fix release build warning
authorPhilip Reames <listmail@philipreames.com>
Fri, 24 Jul 2015 00:42:55 +0000 (00:42 +0000)
committerPhilip Reames <listmail@philipreames.com>
Fri, 24 Jul 2015 00:42:55 +0000 (00:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243076 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index e9f8a6c..5a1fac0 100644 (file)
@@ -720,9 +720,11 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache) {
   // analougous to pessimistic data flow and would likely lead to an
   // overall worse solution.
 
+#ifndef NDEBUG
   auto isExpectedBDVType = [](Value *BDV) {
     return isa<PHINode>(BDV) || isa<SelectInst>(BDV);
   };
+#endif
 
   // Once populated, will contain a mapping from each potentially non-base BDV
   // to a lattice value (described above) which corresponds to that BDV.