From 2887dd754ee8a9f04395c03f40c521844003a9ef Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Mon, 13 Jun 2022 14:48:59 +0000 Subject: [PATCH] [NFC][Alignment] Use getAlign in VNCoercion --- llvm/lib/Transforms/Utils/VNCoercion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/VNCoercion.cpp b/llvm/lib/Transforms/Utils/VNCoercion.cpp index 637181722f63..89a2c374c7ef 100644 --- a/llvm/lib/Transforms/Utils/VNCoercion.cpp +++ b/llvm/lib/Transforms/Utils/VNCoercion.cpp @@ -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;