[NFC] Inline variable
authorGuillaume Chatelet <gchatelet@google.com>
Mon, 6 Feb 2023 09:03:55 +0000 (09:03 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 6 Feb 2023 09:08:23 +0000 (09:08 +0000)
llvm/lib/Target/CSKY/CSKYISelLowering.cpp
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

index a65a028..a08ba27 100644 (file)
@@ -153,8 +153,7 @@ CSKYTargetLowering::CSKYTargetLowering(const TargetMachine &TM,
   setMaxAtomicSizeInBitsSupported(0);
 
   setStackPointerRegisterToSaveRestore(CSKY::R14);
-  const Align FunctionAlignment(2);
-  setMinFunctionAlignment(FunctionAlignment);
+  setMinFunctionAlignment(Align(2));
   setSchedulingPreference(Sched::Source);
 }
 
index de720c5..233eb3a 100644 (file)
@@ -195,8 +195,7 @@ LoongArchTargetLowering::LoongArchTargetLowering(const TargetMachine &TM,
   setMinCmpXchgSizeInBits(32);
 
   // Function alignments.
-  const Align FunctionAlignment(4);
-  setMinFunctionAlignment(FunctionAlignment);
+  setMinFunctionAlignment(Align(4));
 
   setTargetDAGCombine(ISD::AND);
   setTargetDAGCombine(ISD::OR);