Skip to content

Commit

Permalink
[NFC][Alignment] Use getAlign in VNCoercion
Browse files Browse the repository at this point in the history
  • Loading branch information
gchatelet committed Jun 13, 2022
1 parent dff32e3 commit 2887dd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Utils/VNCoercion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ static unsigned getLoadLoadClobberFullWidthSize(const Value *MemLocBase,
// looking at an i8 load on x86-32 that is known 1024 byte aligned, we can
// widen it up to an i32 load. If it is known 2-byte aligned, we can widen it
// to i16.
unsigned LoadAlign = LI->getAlignment();
unsigned LoadAlign = LI->getAlign().value();

int64_t MemLocEnd = MemLocOffs + MemLocSize;

Expand Down

0 comments on commit 2887dd7

Please sign in to comment.