Skip to content

Commit 10ef98a

Browse files
authored
[Orc] Fix build error in JITLoaderVTune
Revert removal of `#include <map>` in 1f4d91e#diff-c76b4e403936f869d0254d51dbbe95b21bb136d21d07cd94fc840817f8185833R14. I've been getting the following error since that commit ``` [18:34:04] /workspace/srcdir/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp:115:28: error: ‘map’ in namespace ‘std’ does not name a template type [18:34:04] 115 | using NativeCodeMap = std::map<uint64_t, SourceLocations>; [18:34:04] | ^~~ [18:34:04] /workspace/srcdir/llvm-project/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp:18:1: note: ‘std::map’ is defined in header ‘<map>’; did you forget to ‘#include <map>’? [18:34:04] 17 | #include "ittnotify.h" [18:34:04] +++ |+#include <map> [18:34:04] 18 | ```
1 parent febbf91 commit 10ef98a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#if LLVM_USE_INTEL_JITEVENTS
1616
#include "IntelJITEventsWrapper.h"
1717
#include "ittnotify.h"
18+
#include <map>
1819

1920
using namespace llvm;
2021
using namespace llvm::orc;

0 commit comments

Comments
 (0)