@@ -2819,34 +2819,35 @@ class Sema final : public SemaBase {
2819
2819
2820
2820
/// BuiltinConstantArg - Handle a check if argument ArgNum of CallExpr
2821
2821
/// TheCall is a constant expression.
2822
- bool BuiltinConstantArg(CallExpr *TheCall, int ArgNum, llvm::APSInt &Result);
2822
+ bool BuiltinConstantArg(CallExpr *TheCall, unsigned ArgNum,
2823
+ llvm::APSInt &Result);
2823
2824
2824
2825
/// BuiltinConstantArgRange - Handle a check if argument ArgNum of CallExpr
2825
2826
/// TheCall is a constant expression in the range [Low, High].
2826
- bool BuiltinConstantArgRange(CallExpr *TheCall, int ArgNum, int Low, int High ,
2827
- bool RangeIsError = true);
2827
+ bool BuiltinConstantArgRange(CallExpr *TheCall, unsigned ArgNum, int Low,
2828
+ int High, bool RangeIsError = true);
2828
2829
2829
2830
/// BuiltinConstantArgMultiple - Handle a check if argument ArgNum of CallExpr
2830
2831
/// TheCall is a constant expression is a multiple of Num..
2831
- bool BuiltinConstantArgMultiple(CallExpr *TheCall, int ArgNum,
2832
+ bool BuiltinConstantArgMultiple(CallExpr *TheCall, unsigned ArgNum,
2832
2833
unsigned Multiple);
2833
2834
2834
2835
/// BuiltinConstantArgPower2 - Check if argument ArgNum of TheCall is a
2835
2836
/// constant expression representing a power of 2.
2836
- bool BuiltinConstantArgPower2(CallExpr *TheCall, int ArgNum);
2837
+ bool BuiltinConstantArgPower2(CallExpr *TheCall, unsigned ArgNum);
2837
2838
2838
2839
/// BuiltinConstantArgShiftedByte - Check if argument ArgNum of TheCall is
2839
2840
/// a constant expression representing an arbitrary byte value shifted left by
2840
2841
/// a multiple of 8 bits.
2841
- bool BuiltinConstantArgShiftedByte(CallExpr *TheCall, int ArgNum,
2842
+ bool BuiltinConstantArgShiftedByte(CallExpr *TheCall, unsigned ArgNum,
2842
2843
unsigned ArgBits);
2843
2844
2844
2845
/// BuiltinConstantArgShiftedByteOr0xFF - Check if argument ArgNum of
2845
2846
/// TheCall is a constant expression representing either a shifted byte value,
2846
2847
/// or a value of the form 0x??FF (i.e. a member of the arithmetic progression
2847
2848
/// 0x00FF, 0x01FF, ..., 0xFFFF). This strange range check is needed for some
2848
2849
/// Arm MVE intrinsics.
2849
- bool BuiltinConstantArgShiftedByteOrXXFF(CallExpr *TheCall, int ArgNum,
2850
+ bool BuiltinConstantArgShiftedByteOrXXFF(CallExpr *TheCall, unsigned ArgNum,
2850
2851
unsigned ArgBits);
2851
2852
2852
2853
/// Checks that a call expression's argument count is at least the desired
0 commit comments