From 746bd860c9c5c07332b145e0d29af0a49bf69dfe Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Wed, 18 Mar 2020 18:25:07 +0000 Subject: [PATCH] Replace get*Alignment() methods with get*Align() equivalents. Fixes deprecation warning in EXPENSIVE_CHECKS builds. --- llvm/lib/CodeGen/PrologEpilogInserter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/PrologEpilogInserter.cpp b/llvm/lib/CodeGen/PrologEpilogInserter.cpp index a2ca8bcf43ac..b12ccc40eb61 100644 --- a/llvm/lib/CodeGen/PrologEpilogInserter.cpp +++ b/llvm/lib/CodeGen/PrologEpilogInserter.cpp @@ -812,7 +812,7 @@ void PEI::calculateFrameObjectOffsets(MachineFunction &MF) { for (unsigned i = 0, e = MFI.getObjectIndexEnd(); i != e; ++i) if (!MFI.isDeadObjectIndex(i) && MFI.getStackID(i) == TargetStackID::Default) - assert(MFI.getObjectAlignment(i) <= MFI.getMaxAlignment() && + assert(MFI.getObjectAlign(i) <= MFI.getMaxAlign() && "MaxAlignment is invalid"); #endif