diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r-- | llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<Constant>(V) && isa<PointerType>(V->getType()) && cast<Constant>(V)->isNullValue(); } |