diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-02-22 09:58:19 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-02-22 09:58:19 +0000 |
commit | f7d08f6dcc7e784f6325019b292d29e74ee65cf9 (patch) | |
tree | e64bb89f84c17f509950ce606f99e9f41118180e /llvm/lib/Transforms | |
parent | 02aa295a0087b21f921a498170891f995f003a18 (diff) | |
download | bcm5719-llvm-f7d08f6dcc7e784f6325019b292d29e74ee65cf9.tar.gz bcm5719-llvm-f7d08f6dcc7e784f6325019b292d29e74ee65cf9.zip |
RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIBUTE_UNUSED. [-Wunused-function]
llvm-svn: 230169
Diffstat (limited to 'llvm/lib/Transforms')
-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(); } |