From f7b3ae65c8ac7248afe5be15b83f737a5fe98ae9 Mon Sep 17 00:00:00 2001 From: Michael Kruse Date: Thu, 14 Nov 2019 15:17:16 -0600 Subject: [GPGPU] Fix depricated warning. setAlignment(unsigned) was deprecated in commit: 0e62011df891d0e7ad904524edf705d07d12d5d4 [Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned) --- polly/lib/CodeGen/PPCGCodeGeneration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'polly/lib/CodeGen/PPCGCodeGeneration.cpp') 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; -- cgit v1.2.3