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
This commit is contained in:
Chandler Carruth 2017-05-10 02:39:35 +00:00
parent e9ee517930
commit d742e5efa8
1 changed files with 2 additions and 2 deletions

View 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,