HomePhabricator

[llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not…

Authored by RKSimon on Jun 15 2021, 6:16 AM.

Description

[llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not double-close fd (PR50620)

As was reported on PR50620, the X86LbrCounter destructor was double-closing the filedescriptor and not unmapping the buffer.

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