[all-commits] [llvm/llvm-project] d5c67b: [RegAlloc] Cast uint8_t to unsigned before printin...

Craig Topper via All-commits all-commits at lists.llvm.org
Thu Sep 23 08:55:12 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5c67bba62d3abc96ac501f45cabc33a100b00e8
      https://github.com/llvm/llvm-project/commit/d5c67bba62d3abc96ac501f45cabc33a100b00e8
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2021-09-23 (Thu, 23 Sep 2021)

  Changed paths:
    M llvm/lib/CodeGen/RegAllocGreedy.cpp

  Log Message:
  -----------
  [RegAlloc] Cast uint8_t to unsigned before printing it.

raw_ostream interprets uint8_t as wanting to print a character
with that ASCII value. In this case the uint8_t is an integer
that we want to print.




More information about the All-commits mailing list