[llvm] 657f8b3 - [RISCV] Fix incorrect return type of isPushable() to bool. NFC.

Jim Lin via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 26 02:08:04 PDT 2023


Author: Jim Lin
Date: 2023-07-26T17:04:47+08:00
New Revision: 657f8b35007cc03d4b103b579d65780015977c69

URL: https://github.com/llvm/llvm-project/commit/657f8b35007cc03d4b103b579d65780015977c69
DIFF: https://github.com/llvm/llvm-project/commit/657f8b35007cc03d4b103b579d65780015977c69.diff

LOG: [RISCV] Fix incorrect return type of isPushable() to bool. NFC.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h b/llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
index 5dfd47a687e922..9a534ee4e2a2f1 100644
--- a/llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
+++ b/llvm/lib/Target/RISCV/RISCVMachineFunctionInfo.h
@@ -127,7 +127,7 @@ class RISCVMachineFunctionInfo : public MachineFunctionInfo {
   unsigned getCalleeSavedStackSize() const { return CalleeSavedStackSize; }
   void setCalleeSavedStackSize(unsigned Size) { CalleeSavedStackSize = Size; }
 
-  uint64_t isPushable(const MachineFunction &MF) const {
+  bool isPushable(const MachineFunction &MF) const {
     return (!useSaveRestoreLibCalls(MF) &&
             MF.getSubtarget<RISCVSubtarget>().hasStdExtZcmp() &&
             !MF.getTarget().Options.DisableFramePointerElim(MF));


        


More information about the llvm-commits mailing list