[all-commits] [llvm/llvm-project] 296a68: [formatv][FmtAlign] Use fill count of type size_t ...

Andrei Golubev via All-commits all-commits at lists.llvm.org
Thu Jan 18 07:16:23 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 296a6842d190b8775613a2fcfd6b19847bfec5bd
      https://github.com/llvm/llvm-project/commit/296a6842d190b8775613a2fcfd6b19847bfec5bd
  Author: Andrei Golubev <andrey.golubev at intel.com>
  Date:   2024-01-18 (Thu, 18 Jan 2024)

  Changed paths:
    M llvm/include/llvm/Support/FormatCommon.h

  Log Message:
  -----------
  [formatv][FmtAlign] Use fill count of type size_t instead of uint32_t (#78459)

FmtAlign::fill() accepts a uint32_t variable while the usages operate on
size_t values. On some platform / compiler combinations, this ends up
being a narrowing conversion. Fix this by changing the function's signature.
This was first seen on MSVC x86.

Co-authored-by: Orest Chura <orest.chura at intel.com>




More information about the All-commits mailing list