RewriteStatepointsForGC.cpp: Fix for -Asserts to mark isNullConstant() as LLVM_ATTRIB...
[oota-llvm.git] / 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();
 }