From: NAKAMURA Takumi Date: Sun, 22 Feb 2015 09:58:19 +0000 (+0000) Subject: RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIB... X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=2aabd71b8ae6deabd68ae1aa8038b52fb05a9fb1 RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIBUTE_UNUSED. [-Wunused-function] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230169 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 21452d66b63..4c638c8e5af 100644 --- a/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp @@ -300,7 +300,7 @@ analyzeParsePointLiveness(DominatorTree &DT, const CallSite &CS, } /// True iff this value is the null pointer constant (of any pointer type) -static bool isNullConstant(Value *V) { +static bool LLVM_ATTRIBUTE_UNUSED isNullConstant(Value *V) { return isa(V) && isa(V->getType()) && cast(V)->isNullValue(); }