[all-commits] [llvm/llvm-project] 3ead26: [scudo] Fix implicitly narrow casting (NFC)

ChiaHungDuan via All-commits all-commits at lists.llvm.org
Fri Oct 14 20:55:23 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3ead26e65bab612e6aead979646b40c6c15d9ba6
      https://github.com/llvm/llvm-project/commit/3ead26e65bab612e6aead979646b40c6c15d9ba6
  Author: Chia-hung Duan <chiahungduan at google.com>
  Date:   2022-10-15 (Sat, 15 Oct 2022)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/local_cache.h

  Log Message:
  -----------
  [scudo] Fix implicitly narrow casting (NFC)

u16 may be promoted to int by arithmetic type conversion. Do an explicit
cast to avoid certain compiler's warning. This fixes the problem
introduced by 0fb2aeef5310eaba2915b30810464a744a80da15

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




More information about the All-commits mailing list