[polly] f7b3ae6 - [GPGPU] Fix depricated warning.
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 14 13:25:34 PST 2019
Author: Michael Kruse
Date: 2019-11-14T15:24:52-06:00
New Revision: f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9
URL: https://github.com/llvm/llvm-project/commit/f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9
DIFF: https://github.com/llvm/llvm-project/commit/f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9.diff
LOG: [GPGPU] Fix depricated warning.
setAlignment(unsigned) was deprecated in commit:
0e62011df891d0e7ad904524edf705d07d12d5d4
[Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned)
Added:
Modified:
polly/lib/CodeGen/PPCGCodeGeneration.cpp
Removed:
################################################################################
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index e9ad7c28c686..99cd5d2def10 100644
--- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp
+++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
@@ -2242,7 +2242,7 @@ void GPUNodeBuilder::createKernelVariables(ppcg_kernel *Kernel, Function *FN) {
auto GlobalVar = new GlobalVariable(
*M, ArrayTy, false, GlobalValue::InternalLinkage, 0, Var.name,
nullptr, GlobalValue::ThreadLocalMode::NotThreadLocal, 3);
- GlobalVar->setAlignment(EleTy->getPrimitiveSizeInBits() / 8);
+ GlobalVar->setAlignment(llvm::Align(EleTy->getPrimitiveSizeInBits() / 8));
GlobalVar->setInitializer(Constant::getNullValue(ArrayTy));
Allocation = GlobalVar;
More information about the llvm-commits
mailing list