[all-commits] [llvm/llvm-project] 9c3530: [InstrProf][NFC] Fix warning by removing typecast

Ellis Hoag via All-commits all-commits at lists.llvm.org
Fri Mar 4 10:48:43 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c35303981ae9a4495b3590fca9c3afbf34af213
      https://github.com/llvm/llvm-project/commit/9c35303981ae9a4495b3590fca9c3afbf34af213
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2022-03-04 (Fri, 04 Mar 2022)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingFile.c

  Log Message:
  -----------
  [InstrProf][NFC] Fix warning by removing typecast

This fixes a warning about comparing mismatched types. Since `mmap()` already returns a `void *` use that as the pointer type for comparison.

Reviewed By: kyulee, zequanwu

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




More information about the All-commits mailing list