Skip to content

Commit b50b68a

Browse files
committed
pass Imm by reference
1 parent e66bbae commit b50b68a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clang/lib/AST/ExprConstShared.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,6 @@ CharUnits GetAlignOfExpr(const ASTContext &Ctx, const Expr *E,
8080
uint8_t GFNIMultiplicativeInverse(uint8_t Byte);
8181
uint8_t GFNIMul(uint8_t AByte, uint8_t BByte);
8282
uint8_t GFNIAffine(uint8_t XByte, const llvm::APInt &AQword,
83-
const llvm::APSInt Imm, bool Inverse = false);
83+
const llvm::APSInt &Imm, bool Inverse = false);
8484

8585
#endif

clang/lib/AST/ExprConstant.cpp

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

19593-
uint8_t GFNIAffine(uint8_t XByte, const APInt &AQword, const APSInt Imm,
19593+
uint8_t GFNIAffine(uint8_t XByte, const APInt &AQword, const APSInt &Imm,
1959419594
bool Inverse) {
1959519595
unsigned NumBitsInByte = 8;
1959619596
// Computing the affine transformation

0 commit comments

Comments
 (0)