[llvm-branch-commits] [llvm] 15f2d4f - [AIX] Fixed "comparison of unsigned expression >= 0 is always true" gcc warnings.

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 14 08:13:50 PST 2020


Author: diggerlin
Date: 2020-12-14T11:08:40-05:00
New Revision: 15f2d4f198380762e9fcf6b456d405078b87ae7a

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

LOG: [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

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 02a425044c75..d364eb9d3996 100644
--- a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp
+++ b/llvm/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


        


More information about the llvm-branch-commits mailing list