[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 e9f8a6c158a7f560fec0d2ccb340b25eec1de832..5a1fac0c456d4dffd4d13be0ed1c1f2f1dda89a6 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.