================
@@ -51,7 +52,9 @@ LIBC_INLINE ErrorOr<size_t> vasprintf_internal(char **ret,
init_buff_on_stack, DEFAULT_BUFFER_SIZE, resize_overflow_hook);
printf_core::Writer writer(wb);
- auto ret_val = printf_core::printf_main(&writer, format, args);
+ auto ret_val = use_modular
+ ? printf_core::printf_main_modular(&writer, format, args)
+ : printf_core::printf_main(&writer, format, args);
----------------
statham-arm wrote:
Does this _guarantee_ that the other function won't be included in the link
anyway? E.g. if building at `-O0` for debugging, might this test of a
compile-time constant expression be evaluated at run time anyway? Would it be a
better idea to make this an `if constexpr`?
https://github.com/llvm/llvm-project/pull/147426
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits