[NFC][Alignment] Use getAlign in VNCoercion
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 13 Jun 2022 14:48:59 +0000 (14:48 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 13 Jun 2022 15:13:05 +0000 (15:13 +0000)
llvm/lib/Transforms/Utils/VNCoercion.cpp

index 637181722f6310df4a23511c3b63e587011f1c45..89a2c374c7efc597daf2a5499a268a5e769da4d0 100644 (file)
@@ -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;