diff options
author | Shoaib Meenai <smeenai@fb.com> | 2023-07-11 00:30:01 -0700 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2023-07-11 09:39:25 -0700 |
commit | caf5b6a2121751ec6f0e9bf7c7984be229c685cc (patch) | |
tree | ab9addc8c4a6007b9c0e2b94b69da10014ff63fe /clang/lib/Lex/ModuleMap.cpp | |
parent | 631576561ee2d3907f8038dac50e08b266311e12 (diff) | |
download | llvm-caf5b6a2121751ec6f0e9bf7c7984be229c685cc.zip llvm-caf5b6a2121751ec6f0e9bf7c7984be229c685cc.tar.gz llvm-caf5b6a2121751ec6f0e9bf7c7984be229c685cc.tar.bz2 |
[bolt] Fix MSVC builds
We need to explicitly mark DWARFUnitInfo as non-copyable since MSVC's
STL has a `noexcept(false)` move constructor for `unordered_map`; see
the added comment for more details.
An alternative might be using SmallVector instead of std::vector, since
that never tries to copy elements [1]. That would result in a bunch of
API changes though, so I figured a smaller targeted fix was better.
[1] https://llvm.org/docs/ProgrammersManual.html#llvm-adt-smallvector-h
Reviewed By: ayermolo, maksfb
Differential Revision: https://reviews.llvm.org/D154924
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions