Skip to content

Commit

Permalink
[SYCL][NFC] Use getAlign method instead of deprecated getAlignment (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
maksimsab committed Feb 13, 2024
1 parent 207455e commit cdd3b9c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions llvm/lib/SYCLLowerIR/LowerWGScope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,7 @@ static void copyBetweenPrivateAndShadow(Value *L, GlobalVariable *Shadow,
assert(T && "Unexpected type");

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

0 comments on commit cdd3b9c

Please sign in to comment.