[llvm] 0ded75c - [llvm] Fix C++23 error in InstrProfCorrelator.h (#163554)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 15 09:00:07 PDT 2025
Author: Victor Vianna
Date: 2025-10-15T12:00:03-04:00
New Revision: 0ded75c2d1bc9816e5e90289fa746caef6a0bc38
URL: https://github.com/llvm/llvm-project/commit/0ded75c2d1bc9816e5e90289fa746caef6a0bc38
DIFF: https://github.com/llvm/llvm-project/commit/0ded75c2d1bc9816e5e90289fa746caef6a0bc38.diff
LOG: [llvm] Fix C++23 error in InstrProfCorrelator.h (#163554)
[1] instantiates ~unique_ptr<DwarfContext>, so that must be a complete
type.
[1]
https://github.com/llvm/llvm-project/blob/67e6a376209c9cc9576012c1c042bee9b852d584/llvm/include/llvm/ProfileData/InstrProfCorrelator.h#L182
Co-authored-by: Victor Hugo Vianna Silva <victorvianna at google.com>
Added:
Modified:
llvm/include/llvm/ProfileData/InstrProfCorrelator.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ProfileData/InstrProfCorrelator.h b/llvm/include/llvm/ProfileData/InstrProfCorrelator.h
index d460eb1cdf528..1617ae782307c 100644
--- a/llvm/include/llvm/ProfileData/InstrProfCorrelator.h
+++ b/llvm/include/llvm/ProfileData/InstrProfCorrelator.h
@@ -13,6 +13,7 @@
#define LLVM_PROFILEDATA_INSTRPROFCORRELATOR_H
#include "llvm/ADT/DenseSet.h"
+#include "llvm/DebugInfo/DWARF/DWARFContext.h"
#include "llvm/Debuginfod/BuildIDFetcher.h"
#include "llvm/Object/BuildID.h"
#include "llvm/ProfileData/InstrProf.h"
@@ -24,7 +25,6 @@
#include <vector>
namespace llvm {
-class DWARFContext;
class DWARFDie;
namespace object {
class ObjectFile;
More information about the llvm-commits
mailing list