From 1cd7949f8bb137c761bf8b1a87aec1248895ccc7 Mon Sep 17 00:00:00 2001 From: diggerlin Date: Mon, 14 Dec 2020 11:08:40 -0500 Subject: [PATCH] [AIX] Fixed "comparison of unsigned expression >= 0 is always true" gcc warnings. Summary: fixed a Fixed "comparison of unsigned expression >= 0 is always true" gcc warnings. http://lab.llvm.org:8011/#/builders/5/builds/2407/steps/2/logs/stdio the error caused by patch https://reviews.llvm.org/D92398 --- lib/Target/PowerPC/PPCMachineFunctionInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp b/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp index 02a425044c7..d364eb9d399 100644 --- a/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp +++ b/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp @@ -67,7 +67,7 @@ bool PPCFunctionInfo::isLiveInZExt(Register VReg) const { void PPCFunctionInfo::appendParameterType(ParamType Type) { uint32_t CopyParamType = ParameterType; - unsigned Bits = 0; + int Bits = 0; // If it is fixed type, we only need to increase the FixedParamNum, for // the bit encode of fixed type is bit of zero, we do not need to change the