From: Philip Reames Date: Fri, 24 Jul 2015 00:42:55 +0000 (+0000) Subject: [RewriteStatepointsForGC] Fix release build warning X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a8f6ce415be3e7fcb080736821d0045e0ef627ae;p=oota-llvm.git [RewriteStatepointsForGC] Fix release build warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243076 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index e9f8a6c158a..5a1fac0c456 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -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(BDV) || isa(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.