[all-commits] [llvm/llvm-project] 259936: [NFC][AsmPrinter] Windows warning: Use explicit cast

David Stuttard via All-commits all-commits at lists.llvm.org
Thu Jan 14 01:12:29 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 259936f4910ad7da7589f81862fc855386ae8621
      https://github.com/llvm/llvm-project/commit/259936f4910ad7da7589f81862fc855386ae8621
  Author: David Stuttard <david.stuttard at amd.com>
  Date:   2021-01-14 (Thu, 14 Jan 2021)

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

  Log Message:
  -----------
  [NFC][AsmPrinter] Windows warning: Use explicit cast

static_cast for uint64_t to unsigned gives a MS VC build warning
for Windows:

warning C4309: 'static_cast': truncation of constant value

Use an explicit cast instead.

Change-Id: I692d335b4913070686a102780c1fb05b893a2f69

Differential Revision: https://reviews.llvm.org/D94592




More information about the All-commits mailing list