[llvm] d551e40 - [AIX] Change the code based on https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20201214/864235.html

via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 18 10:03:28 PST 2020


Author: diggerlin
Date: 2020-12-18T13:02:41-05:00
New Revision: d551e40f1cff7a63218f34112bd0dddaa2b12dbb

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

LOG: [AIX] Change the code based on https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20201214/864235.html

Summary:

change the code based on the discussion as:
https://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20201214/864235.html

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
index d364eb9d3996..c976a9c62d3b 100644
--- a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
+++ b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
@@ -94,6 +94,6 @@ void PPCFunctionInfo::appendParameterType(ParamType Type) {
   }
 
   assert(Type != FixedType && "FixedType should already be handled.");
-  if (30 - Bits >= 0)
+  if (Bits < 31)
     ParameterType |= Type << (30 - Bits);
 }


        


More information about the llvm-commits mailing list