[libcxx-commits] [libcxx] [libc++][format] Don't instantiate direct `__(u)int128_t` visitation (PR #139662)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jun 13 00:18:12 PDT 2025


================
@@ -272,7 +272,7 @@ __handle_replacement_field(_Iterator __begin, _Iterator __end, _ParseCtx& __pars
     else if (__parse)
       __format::__compile_time_visit_format_arg(__parse_ctx, __ctx, __type);
   } else
-    std::__visit_format_arg(
+    std::__visit_format_arg<__format::__directly_visit_i128::__yes>(
----------------
frederick-vs-ja wrote:

IIUC we can perform the direct visitation here because the visitor is controlled by the implementation. Doing so keeps the existing strategy and performs less indirection.

https://github.com/llvm/llvm-project/pull/139662


More information about the libcxx-commits mailing list