Skip to content

Commit 9a5b387

Browse files
committed
Rename helper
1 parent b5fdcfd commit 9a5b387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenBuiltin.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ decodeFixedType(ArrayRef<llvm::Intrinsic::IITDescriptor> &infos,
536536
/// IIT always returns signed integers, but the actual intrinsic may expect
537537
/// unsigned integers based on the AST FunctionDecl parameter types.
538538
static mlir::Type
539-
correctIntrinsicIntegerSignedness(mlir::Type iitType, const CallExpr *E,
539+
getIntrinsicArgumentTypeFromAST(mlir::Type iitType, const CallExpr *E,
540540
unsigned argIndex,
541541
mlir::MLIRContext *context) {
542542
// If it's not an integer type, return as-is
@@ -2769,7 +2769,7 @@ RValue CIRGenFunction::emitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
27692769
mlir::Type expectedTy = intrinsicType.getInput(i);
27702770

27712771
// Use helper to get the correct integer type based on AST signedness
2772-
mlir::Type correctedExpectedTy = correctIntrinsicIntegerSignedness(
2772+
mlir::Type correctedExpectedTy = getIntrinsicArgumentTypeFromAST(
27732773
expectedTy, E, i, &getMLIRContext());
27742774

27752775
if (argType != correctedExpectedTy)

0 commit comments

Comments
 (0)