forked from OSchip/llvm-project
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:
parent
e9ee517930
commit
d742e5efa8
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue