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)
llvm-svn: 230169

llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 21452d6..4c638c8 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();
 }