Fix release build warning for unused function
authorPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 21:57:17 +0000 (21:57 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 2 Sep 2015 21:57:17 +0000 (21:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246717 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index e46958527b3b22e0034628fc8b0c63bd8c20343a..e4a05bbeadd6e73c095f64fc69236c79a1f1fc40 100644 (file)
@@ -616,11 +616,12 @@ private:
   Value *base; // non null only if status == base
 };
 
+#ifndef NDEBUG
 inline raw_ostream &operator<<(raw_ostream &OS, const BDVState &State) {
   State.print(OS);
   return OS;
 }
-
+#endif
 
 typedef DenseMap<Value *, BDVState> ConflictStateMapTy;
 // Values of type BDVState form a lattice, and this is a helper