[AIX] Change the code based on https://lists.llvm.org/pipermail/llvm-commits/Week...
authordiggerlin <digger.llvm@gmail.com>
Fri, 18 Dec 2020 18:02:41 +0000 (13:02 -0500)
committerdiggerlin <digger.llvm@gmail.com>
Fri, 18 Dec 2020 18:02:41 +0000 (13:02 -0500)
Summary:

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

llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp

index d364eb9..c976a9c 100644 (file)
@@ -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);
 }