From d551e40f1cff7a63218f34112bd0dddaa2b12dbb Mon Sep 17 00:00:00 2001 From: diggerlin Date: Fri, 18 Dec 2020 13:02:41 -0500 Subject: [PATCH] [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 --- llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp index d364eb9d..c976a9c 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); } -- 2.7.4