From f7d08f6dcc7e784f6325019b292d29e74ee65cf9 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 22 Feb 2015 09:58:19 +0000 Subject: RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIBUTE_UNUSED. [-Wunused-function] llvm-svn: 230169 --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp index 21452d66b63..4c638c8e5af 100644 --- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp +++ b/llvm/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(); } -- cgit v1.2.3