[polly] r353549 - [opaque pointer types] Update calls to CreateCall to pass the function
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 8 11:30:46 PST 2019
Author: jyknight
Date: Fri Feb 8 11:30:46 2019
New Revision: 353549
URL: http://llvm.org/viewvc/llvm-project?rev=353549&view=rev
Log:
[opaque pointer types] Update calls to CreateCall to pass the function
type in lldb and polly.
Modified:
polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp
Modified: polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp?rev=353549&r1=353548&r2=353549&view=diff
==============================================================================
--- polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp (original)
+++ polly/trunk/lib/CodeGen/ManagedMemoryRewrite.cpp Fri Feb 8 11:30:46 2019
@@ -310,7 +310,8 @@ static void rewriteAllocaAsManagedMemory
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
continue;
Builder.SetInsertPoint(Return);
- Value *FreeManagedFn = getOrCreatePollyFreeManaged(*M);
+ Function *FreeManagedFn = getOrCreatePollyFreeManaged(*M);
Builder.CreateCall(FreeManagedFn, {RawManagedMem});
}
}
More information about the llvm-commits
mailing list