Update Polly for LLVM API change r302571 that removed varargs functions
authorChandler Carruth <chandlerc@gmail.com>
Wed, 10 May 2017 02:39:35 +0000 (02:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 10 May 2017 02:39:35 +0000 (02:39 +0000)
with a nullptr sentinel in favor of nicely typed variadic templates.

llvm-svn: 302618

polly/lib/CodeGen/PerfMonitor.cpp

index 3defeef..fe3aba5 100644 (file)
@@ -44,11 +44,11 @@ void PerfMonitor::addToGlobalConstructors(Function *Fn) {
   }
 
   StructType *ST = StructType::get(Builder.getInt32Ty(), Fn->getType(),
-                                   Builder.getInt8PtrTy(), nullptr);
+                                   Builder.getInt8PtrTy());
 
   V.push_back(ConstantStruct::get(
       ST, Builder.getInt32(10), Fn,
-      ConstantPointerNull::get(Builder.getInt8PtrTy()), nullptr));
+      ConstantPointerNull::get(Builder.getInt8PtrTy())));
   ArrayType *Ty = ArrayType::get(ST, V.size());
 
   GV = new GlobalVariable(*M, Ty, true, GlobalValue::AppendingLinkage,