forked from OSchip/llvm-project
[GPGPU] Fix depricated warning.
setAlignment(unsigned) was deprecated in commit:
0e62011df8
[Alignment][NFC] Remove dependency on GlobalObject::setAlignment(unsigned)
This commit is contained in:
parent
3cec2a17de
commit
f7b3ae65c8
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue