Skip to content

Commit 7171f88

Browse files
committed
Make APInt arguments for GFNIAffine const
1 parent 42ec003 commit 7171f88

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

clang/lib/AST/ExprConstShared.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ CharUnits GetAlignOfExpr(const ASTContext &Ctx, const Expr *E,
7979

8080
uint8_t GFNIMultiplicativeInverse(uint8_t Byte);
8181
uint8_t GFNIMul(uint8_t AByte, uint8_t BByte);
82-
uint8_t GFNIAffine(uint8_t XByte, llvm::APInt &AQword, llvm::APSInt Imm,
83-
bool Inverse = false);
82+
uint8_t GFNIAffine(uint8_t XByte, const llvm::APInt &AQword,
83+
const llvm::APSInt Imm, bool Inverse = false);
8484

8585
#endif

clang/lib/AST/ExprConstant.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19590,7 +19590,8 @@ uint8_t GFNIMultiplicativeInverse(uint8_t Byte) {
1959019590
return GFInv[Byte];
1959119591
}
1959219592

19593-
uint8_t GFNIAffine(uint8_t XByte, APInt &AQword, APSInt Imm, bool Inverse) {
19593+
uint8_t GFNIAffine(uint8_t XByte, const APInt &AQword, const APSInt Imm,
19594+
bool Inverse) {
1959419595
unsigned NumBitsInByte = 8;
1959519596
// Computing the affine transformation
1959619597
uint8_t RetByte = 0;

0 commit comments

Comments
 (0)