Skip to content

Commit 62caae7

Browse files
committed
Make APInt arguments for GFNIAffine const
1 parent eb27e83 commit 62caae7

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
@@ -19390,7 +19390,8 @@ uint8_t GFNIMultiplicativeInverse(uint8_t Byte) {
1939019390
return GFInv[Byte];
1939119391
}
1939219392

19393-
uint8_t GFNIAffine(uint8_t XByte, APInt &AQword, APSInt Imm, bool Inverse) {
19393+
uint8_t GFNIAffine(uint8_t XByte, const APInt &AQword, const APSInt Imm,
19394+
bool Inverse) {
1939419395
unsigned NumBitsInByte = 8;
1939519396
// Computing the affine transformation
1939619397
uint8_t RetByte = 0;

0 commit comments

Comments
 (0)