https://github.com/donneypr created https://github.com/llvm/llvm-project/pull/163905
This was missed in my pr #162346 for #160288. >From c84d8396f21d349bb4e1fbafd35c73ad5bd249e3 Mon Sep 17 00:00:00 2001 From: donneypr <[email protected]> Date: Fri, 17 Oct 2025 00:06:46 -0400 Subject: [PATCH] added trailing type for ffs, missed in pr llvm#162346 for llvm#160288 --- clang/lib/AST/ByteCode/InterpBuiltin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index 922d67940e22f..517c51a5f7de1 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -3173,7 +3173,7 @@ bool InterpretBuiltin(InterpState &S, CodePtr OpPC, const CallExpr *Call, case Builtin::BI__builtin_ffsl: case Builtin::BI__builtin_ffsll: return interp__builtin_elementwise_int_unaryop( - S, OpPC, Call, [](const APSInt &Val) { + S, OpPC, Call, [](const APSInt &Val) -> APInt { return APInt(Val.getBitWidth(), Val.isZero() ? 0u : Val.countTrailingZeros() + 1u); }); _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
