RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIB...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Feb 2015 09:58:19 +0000 (09:58 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Sun, 22 Feb 2015 09:58:19 +0000 (09:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230169 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 21452d66b630f1b5ff2b20c90788b6509089e43c..4c638c8e5af1f1e243467068510fe79e27504245 100644 (file)
@@ -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();
 }