diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2017-05-10 02:39:35 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2017-05-10 02:39:35 +0000 |
| commit | d742e5efa8684f35f1a849a62141e5c8cf78f20e (patch) | |
| tree | a2b5181b1883c25acabfd7b32899a6fdaaf7d4cf /polly/lib/CodeGen/PerfMonitor.cpp | |
| parent | e9ee517930f76a972fcda00d9dd0466db80d60f7 (diff) | |
| download | bcm5719-llvm-d742e5efa8684f35f1a849a62141e5c8cf78f20e.tar.gz bcm5719-llvm-d742e5efa8684f35f1a849a62141e5c8cf78f20e.zip | |
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
Diffstat (limited to 'polly/lib/CodeGen/PerfMonitor.cpp')
| -rw-r--r-- | polly/lib/CodeGen/PerfMonitor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/PerfMonitor.cpp b/polly/lib/CodeGen/PerfMonitor.cpp index 3defeef737d..fe3aba532e9 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, |

