[all-commits] [llvm/llvm-project] 34e3bc: [llvm-exegesis] Replace size_t with ssize_t where ...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Tue Aug 22 23:44:35 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34e3bc0b92d7fdc59477c93d187546a2566fbc22
      https://github.com/llvm/llvm-project/commit/34e3bc0b92d7fdc59477c93d187546a2566fbc22
  Author: Aiden Grossman <agrossman154 at yahoo.com>
  Date:   2023-08-22 (Tue, 22 Aug 2023)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

  Log Message:
  -----------
  [llvm-exegesis] Replace size_t with ssize_t where relevant

Currently BenchmarkRunner.cpp stores the return code of recvmsg as
size_t. Not only is this incorrect (as recvmsg returns ssize_t), but it
also makes the error code check after the statement completely irrelvant
as it checks if the number of bytes read is greater than zero (which
will always be true for an unsigned type).




More information about the All-commits mailing list