Skip to content

Commit cdd3b9c

Browse files
authored
[SYCL][NFC] Use getAlign method instead of deprecated getAlignment (#12686)
1 parent 207455e commit cdd3b9c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/SYCLLowerIR/LowerWGScope.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,9 +405,7 @@ static void copyBetweenPrivateAndShadow(Value *L, GlobalVariable *Shadow,
405405
assert(T && "Unexpected type");
406406

407407
if (T->isAggregateType()) {
408-
// TODO: we should use methods which directly return MaybeAlign once such
409-
// are added to LLVM for AllocaInst and GlobalVariable
410-
auto ShdAlign = MaybeAlign(Shadow->getAlignment());
408+
auto ShdAlign = Shadow->getAlign();
411409
Module &M = *Shadow->getParent();
412410
auto SizeVal = M.getDataLayout().getTypeStoreSize(T);
413411
auto Size = ConstantInt::get(getSizeTTy(M), SizeVal);

0 commit comments

Comments
 (0)