From d742e5efa8684f35f1a849a62141e5c8cf78f20e Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Wed, 10 May 2017 02:39:35 +0000 Subject: [PATCH] Update Polly for LLVM API change r302571 that removed varargs functions with a nullptr sentinel in favor of nicely typed variadic templates. llvm-svn: 302618 --- polly/lib/CodeGen/PerfMonitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polly/lib/CodeGen/PerfMonitor.cpp b/polly/lib/CodeGen/PerfMonitor.cpp index 3defeef737d7..fe3aba532e92 100644 --- a/polly/lib/CodeGen/PerfMonitor.cpp +++ b/polly/lib/CodeGen/PerfMonitor.cpp @@ -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,