[PATCH] D38924: Fix `FaultMaps` crash when the out streamer is reused
Yichao Yu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 17 04:44:51 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL315990: Fix `FaultMaps` crash when the out streamer is reused (authored by yuyichao).
Changed prior to commit:
https://reviews.llvm.org/D38924?vs=119043&id=119290#toc
Repository:
rL LLVM
https://reviews.llvm.org/D38924
Files:
llvm/trunk/include/llvm/CodeGen/FaultMaps.h
llvm/trunk/lib/Target/X86/X86AsmPrinter.h
Index: llvm/trunk/lib/Target/X86/X86AsmPrinter.h
===================================================================
--- llvm/trunk/lib/Target/X86/X86AsmPrinter.h
+++ llvm/trunk/lib/Target/X86/X86AsmPrinter.h
@@ -135,6 +135,7 @@
bool doInitialization(Module &M) override {
SMShadowTracker.reset(0);
SM.reset();
+ FM.reset();
return AsmPrinter::doInitialization(M);
}
Index: llvm/trunk/include/llvm/CodeGen/FaultMaps.h
===================================================================
--- llvm/trunk/include/llvm/CodeGen/FaultMaps.h
+++ llvm/trunk/include/llvm/CodeGen/FaultMaps.h
@@ -39,6 +39,9 @@
void recordFaultingOp(FaultKind FaultTy, const MCSymbol *HandlerLabel);
void serializeToFaultMapSection();
+ void reset() {
+ FunctionInfos.clear();
+ }
private:
static const char *WFMP;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38924.119290.patch
Type: text/x-patch
Size: 832 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171017/79fe68bd/attachment.bin>
More information about the llvm-commits
mailing list