This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf][NFC] Fix warning by removing typecast
ClosedPublic

Authored by ellis on Mar 3 2022, 3:11 PM.

Details

Summary

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

Diff Detail

Event Timeline

ellis created this revision.Mar 3 2022, 3:11 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 3:11 PM
ellis published this revision for review.Mar 3 2022, 4:30 PM
ellis edited the summary of this revision. (Show Details)
ellis added reviewers: kyulee, zequanwu, vsk.
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2022, 4:30 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
kyulee accepted this revision.Mar 3 2022, 4:33 PM
This revision is now accepted and ready to land.Mar 3 2022, 4:33 PM
zequanwu accepted this revision.Mar 3 2022, 4:47 PM
This revision was automatically updated to reflect the committed changes.