Author: Timm Baeder Date: 2026-08-12T06:07:03+02:00 New Revision: 309138151c7cca4705bdf6bc6312b998b1c80d94
URL: https://github.com/llvm/llvm-project/commit/309138151c7cca4705bdf6bc6312b998b1c80d94 DIFF: https://github.com/llvm/llvm-project/commit/309138151c7cca4705bdf6bc6312b998b1c80d94.diff LOG: [clang][bytecode][NFC] Avoid an APFloat copy (#215543) Added: Modified: clang/lib/AST/ByteCode/InterpBuiltin.cpp Removed: ################################################################################ diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index 0e81059a0f6cf..68fab67ebe848 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -202,7 +202,7 @@ static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) { // Strict double -> float conversion used for X86 PD2PS/cvtsd2ss intrinsics. // Reject NaN/Inf/Subnormal inputs and any lossy/inexact conversions. -static bool convertDoubleToFloatStrict(APFloat Src, Floating &Dst, +static bool convertDoubleToFloatStrict(const APFloat &Src, Floating &Dst, InterpState &S, const Expr *DiagExpr) { if (Src.isInfinity()) { if (S.diagnosing()) _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
