[all-commits] [llvm/llvm-project] bff33b: [unittests] Fix "comparison of integers of differe...

Miloš Stojanović via All-commits all-commits at lists.llvm.org
Tue Jan 14 04:25:33 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: bff33bd5c83b947cccb4d6cf6ebca9dc021f716b
      https://github.com/llvm/llvm-project/commit/bff33bd5c83b947cccb4d6cf6ebca9dc021f716b
  Author: Miloš Stojanović <Milos.Stojanovic at rt-rk.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M llvm/unittests/ExecutionEngine/JITLink/LinkGraphTests.cpp
    M llvm/unittests/Object/MinidumpTest.cpp

  Log Message:
  -----------
  [unittests] Fix "comparison of integers of different signs" warnings

A warning is sent because `std::distance()` returns a signed type so
`CmpHelperEQ()` gets instantiated into a function that compares
differently signed arguments.

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




More information about the All-commits mailing list