1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/lib
Dimitry Andric 4340c88305 Clear converters map after X86 Domain Reassignment to avoid crashes
Summary:
As reported in PR37264, in some cases the X86 Domain Reassignment
`runOnMachineFunction()` is called twice.  Because it only deletes the
`.second` members of its `InstrConverterBaseMap`, and does not clean up
the map itself, this can lead to double frees and crashes.

Use `DeleteContainerSeconds()` instead, so the `Converters` map can
safely be reinitialized and its members re-deleted for each X86 Domain
Reassignment pass.

Reviewers: guyblank, craig.topper

Reviewed By: craig.topper

Subscribers: llvm-commits

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

llvm-svn: 332176
2018-05-12 19:59:54 +00:00
..
Analysis [IDF] Enforce the returned blocks to be sorted. 2018-05-12 01:44:32 +00:00
AsmParser [STLExtras] Add distance() for ranges, pred_size(), and succ_size() 2018-05-10 23:01:54 +00:00
BinaryFormat Remove @brief commands from doxygen comments, too. 2018-05-01 16:10:38 +00:00
Bitcode [STLExtras] Add distance() for ranges, pred_size(), and succ_size() 2018-05-10 23:01:54 +00:00
CodeGen [DAG] add convenience function to propagate FMF; NFC 2018-05-11 23:13:36 +00:00
DebugInfo [DWARF] Fixing a bug in DWARF v5 string offsets tables where the length encoded the contribution 2018-05-10 20:02:34 +00:00
Demangle [demangler] Add a partial demangling API for LLDB. 2018-04-12 20:41:38 +00:00
ExecutionEngine [RuntimeDyld][MachO] Properly handle thumb to thumb calls within a section. 2018-05-09 01:38:13 +00:00
Fuzzer
FuzzMutate
IR [X86] Remove some unused masked conversion intrinsics that can be replaced with an older intrinsic and a select. 2018-05-12 02:34:28 +00:00
IRReader
LineEditor
Linker
LTO [LTO] Handle Task=-1 passed to addSaveTemps 2018-05-05 14:37:20 +00:00
MC [WebAssembly] Create section start symbols automatically for all sections 2018-05-10 17:38:35 +00:00
Object [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
ObjectYAML Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
Option IWYU for llvm-config.h in llvm, additions. 2018-04-30 14:59:11 +00:00
Passes Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
ProfileData [Coverage] Take filenames into account when loading function records. 2018-05-08 19:26:51 +00:00
Support [NFC] Remove inaccurate comment 2018-05-12 19:39:34 +00:00
TableGen Revert r330742: Let TableGen write output only if it changed, instead of doing so in cmake. 2018-05-07 23:41:48 +00:00
Target Clear converters map after X86 Domain Reassignment to avoid crashes 2018-05-12 19:59:54 +00:00
Testing
ToolDrivers [COFF] Improve correctness of def parsing for GNU features 2018-05-09 09:21:53 +00:00
Transforms Reapply "[PR16756] Use SSAUpdaterBulk in JumpThreading." 2018-05-12 01:52:36 +00:00
WindowsManifest
XRay
CMakeLists.txt
LLVMBuild.txt