[llvm] r243076 - [RewriteStatepointsForGC] Fix release build warning

Philip Reames listmail at philipreames.com
Thu Jul 23 17:42:55 PDT 2015


Author: reames
Date: Thu Jul 23 19:42:55 2015
New Revision: 243076

URL: http://llvm.org/viewvc/llvm-project?rev=243076&view=rev
Log:
[RewriteStatepointsForGC] Fix release build warning


Modified:
    llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=243076&r1=243075&r2=243076&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Thu Jul 23 19:42:55 2015
@@ -720,9 +720,11 @@ static Value *findBasePointer(Value *I,
   // 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.





More information about the llvm-commits mailing list