[all-commits] [llvm/llvm-project] 97c742: [llvm-cov] Fix illegal cast from uint64_t to int64_t

sajjadm-google via All-commits all-commits at lists.llvm.org
Fri Nov 15 18:14:14 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 97c742e6b74e731afdef74dd5f8366ce883e0520
      https://github.com/llvm/llvm-project/commit/97c742e6b74e731afdef74dd5f8366ce883e0520
  Author: Sajjad Mirza <sajjadm at google.com>
  Date:   2019-11-15 (Fri, 15 Nov 2019)

  Changed paths:
    M llvm/tools/llvm-cov/CoverageExporterJson.cpp

  Log Message:
  -----------
  [llvm-cov] Fix illegal cast from uint64_t to int64_t

Summary:
Counters are stored as uint64_t in the coverage mapping, but
exporting in JSON requires signed integers. Clamp the values to the
smaller range to make the conversion safe.

Reviewers: Dor1s, vsk

Reviewed By: Dor1s

Subscribers: llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list