projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43f668b
)
[MC] Destroy WasmAllocator in MCContext::reset
author
Fangrui Song
<i@maskray.me>
Sat, 12 Mar 2022 03:55:07 +0000
(19:55 -0800)
committer
Fangrui Song
<i@maskray.me>
Sat, 12 Mar 2022 03:55:07 +0000
(19:55 -0800)
To not leave lingering getWasmSection instances.
llvm/lib/MC/MCContext.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/MC/MCContext.cpp
b/llvm/lib/MC/MCContext.cpp
index
94992f7
..
c808a32
100644
(file)
--- a/
llvm/lib/MC/MCContext.cpp
+++ b/
llvm/lib/MC/MCContext.cpp
@@
-141,6
+141,7
@@
void MCContext::reset() {
ELFAllocator.DestroyAll();
GOFFAllocator.DestroyAll();
MachOAllocator.DestroyAll();
+ WasmAllocator.DestroyAll();
XCOFFAllocator.DestroyAll();
MCInstAllocator.DestroyAll();