diff --git a/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp b/llvm/lib/Target/PowerPC/PPCMachineFunctionInfo.cpp index 02a425044c757a..d364eb9d3996d9 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