forked from OSchip/llvm-project
[NFC][Alignment] Use getAlign in VNCoercion
This commit is contained in:
parent
dff32e36f6
commit
2887dd754e
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue