From 2aabd71b8ae6deabd68ae1aa8038b52fb05a9fb1 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Sun, 22 Feb 2015 09:58:19 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.34.1