From: Philip Reames Date: Wed, 2 Sep 2015 21:57:17 +0000 (+0000) Subject: Fix release build warning for unused function X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=774bfb2915f6c0d838a432e8ecf69fdf25956e1c;p=oota-llvm.git Fix release build warning for unused function git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246717 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index e46958527b3..e4a05bbeadd 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -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 ConflictStateMapTy; // Values of type BDVState form a lattice, and this is a helper