summaryrefslogtreecommitdiffstats
path: root/polly/lib/CodeGen/PPCGCodeGeneration.cpp
diff options
context:
space:
mode:
authorMichael Kruse <llvm-project@meinersbur.de>2019-11-14 15:17:16 -0600
committerMichael Kruse <llvm-project@meinersbur.de>2019-11-14 15:24:52 -0600
commitf7b3ae65c8ac7248afe5be15b83f737a5fe98ae9 (patch)
treedfe5e00e3b7036891c91f529efda52e6c7e5522b /polly/lib/CodeGen/PPCGCodeGeneration.cpp
parent3cec2a17de744900401c83aedb442e2acc1f23f8 (diff)
downloadbcm5719-llvm-f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9.tar.gz
bcm5719-llvm-f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9.zip
[GPGPU] Fix depricated warning.
setAlignment(unsigned) was deprecated in commit: 0e62011df891d0e7ad904524edf705d07d12d5d4 [Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned)
Diffstat (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp')
-rw-r--r--polly/lib/CodeGen/PPCGCodeGeneration.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp
index e9ad7c28c68..99cd5d2def1 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;
OpenPOWER on IntegriCloud