diff options
Diffstat (limited to 'polly/lib/CodeGen/ManagedMemoryRewrite.cpp')
-rw-r--r-- | polly/lib/CodeGen/ManagedMemoryRewrite.cpp | 5 |
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}); } } |