[llvm] 4b6f0ea - [RISCV] Fix a typo in RISCVISelLowering.cpp

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 6 18:41:33 PDT 2020


Author: Ben Shi
Date: 2020-06-06T18:41:00-07:00
New Revision: 4b6f0ea66cb12798bb7de035ac9b676f61534649

URL: https://github.com/llvm/llvm-project/commit/4b6f0ea66cb12798bb7de035ac9b676f61534649
DIFF: https://github.com/llvm/llvm-project/commit/4b6f0ea66cb12798bb7de035ac9b676f61534649.diff

LOG: [RISCV] Fix a typo in RISCVISelLowering.cpp

The 9th parameter of "static bool CC_RISCV(...)" is isFixed, not isRet.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D81333

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 7b1174491e64..b6e9d9f09e12 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -1673,7 +1673,7 @@ void RISCVTargetLowering::analyzeInputArgs(
 
     RISCVABI::ABI ABI = MF.getSubtarget<RISCVSubtarget>().getTargetABI();
     if (CC_RISCV(MF.getDataLayout(), ABI, i, ArgVT, ArgVT, CCValAssign::Full,
-                 ArgFlags, CCInfo, /*IsRet=*/true, IsRet, ArgTy)) {
+                 ArgFlags, CCInfo, /*IsFixed=*/true, IsRet, ArgTy)) {
       LLVM_DEBUG(dbgs() << "InputArg #" << i << " has unhandled type "
                         << EVT(ArgVT).getEVTString() << '\n');
       llvm_unreachable(nullptr);


        


More information about the llvm-commits mailing list