From 4b15156dca323a530e2f4a08b0c1cc24750cc4b3 Mon Sep 17 00:00:00 2001 From: Guillaume Chatelet Date: Fri, 5 Feb 2021 10:09:17 +0000 Subject: [PATCH] [NFC] inline variable --- llvm/lib/CodeGen/CodeGenPrepare.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 93172887608c..2b6dbde3ac58 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -6931,11 +6931,10 @@ class VectorPromoteHelper { StoreInst *ST = cast(CombineInst); unsigned AS = ST->getPointerAddressSpace(); - Align Alignment = ST->getAlign(); // Check if this store is supported. if (!TLI.allowsMisalignedMemoryAccesses( TLI.getValueType(DL, ST->getValueOperand()->getType()), AS, - Alignment)) { + ST->getAlign())) { // If this is not supported, there is no way we can combine // the extract with the store. return false;