From: Sylvestre Ledru Date: Sat, 7 Sep 2019 08:38:46 +0000 (+0000) Subject: Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionA... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d6a5b9543c8d327e86c93c7024f7622ba52dbe3;p=llvm Replicate the change "[Alignment][NFC] Use Align with TargetLowering::setMinFunctionAlignment" on AVR to avoid a breakage. See r371200 / https://reviews.llvm.org/D67229 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371293 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AVR/AVRISelLowering.cpp b/lib/Target/AVR/AVRISelLowering.cpp index 12b08e8ece5..6566f618b95 100644 --- a/lib/Target/AVR/AVRISelLowering.cpp +++ b/lib/Target/AVR/AVRISelLowering.cpp @@ -236,7 +236,7 @@ AVRTargetLowering::AVRTargetLowering(const AVRTargetMachine &TM, setLibcallName(RTLIB::SIN_F32, "sin"); setLibcallName(RTLIB::COS_F32, "cos"); - setMinFunctionLogAlignment(1); + setMinFunctionAlignment(llvm::Align(2)); setMinimumJumpTableEntries(UINT_MAX); }