summaryrefslogtreecommitdiffstats
path: root/polly
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2019-02-08 19:30:46 +0000
committerJames Y Knight <jyknight@google.com>2019-02-08 19:30:46 +0000
commitae2f9512196965457b5904ba8e335ad6f53550a0 (patch)
treef4fbba41f136bbe128c66872adaefc1e106d2cee /polly
parentd7047276ec26cf9c90a3768548af9aa9c3955c60 (diff)
downloadbcm5719-llvm-ae2f9512196965457b5904ba8e335ad6f53550a0.tar.gz
bcm5719-llvm-ae2f9512196965457b5904ba8e335ad6f53550a0.zip
[opaque pointer types] Update calls to CreateCall to pass the function
type in lldb and polly. llvm-svn: 353549
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/CodeGen/ManagedMemoryRewrite.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
index ead32517b02..8065eb8c4bd 100644
--- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
+++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp
@@ -310,7 +310,8 @@ static void rewriteAllocaAsManagedMemory(AllocaInst *Alloca,
PollyIRBuilder Builder(M->getContext());
Builder.SetInsertPoint(Alloca);
- Value *MallocManagedFn = getOrCreatePollyMallocManaged(*Alloca->getModule());
+ Function *MallocManagedFn =
+ getOrCreatePollyMallocManaged(*Alloca->getModule());
const uint64_t Size =
DL.getTypeAllocSize(Alloca->getType()->getElementType());
Value *SizeVal = Builder.getInt64(Size);
@@ -330,7 +331,7 @@ static void rewriteAllocaAsManagedMemory(AllocaInst *Alloca,
continue;
Builder.SetInsertPoint(Return);
- Value *FreeManagedFn = getOrCreatePollyFreeManaged(*M);
+ Function *FreeManagedFn = getOrCreatePollyFreeManaged(*M);
Builder.CreateCall(FreeManagedFn, {RawManagedMem});
}
}
OpenPOWER on IntegriCloud