[PATCH] D78926: [libunwind] Fix libunwind build without a heap
Amanieu d'Antras via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 27 09:06:38 PDT 2020
Amanieu updated this revision to Diff 260344.
Amanieu added a comment.
Added context
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78926/new/
https://reviews.llvm.org/D78926
Files:
libunwind/src/DwarfParser.hpp
Index: libunwind/src/DwarfParser.hpp
===================================================================
--- libunwind/src/DwarfParser.hpp
+++ libunwind/src/DwarfParser.hpp
@@ -401,6 +401,7 @@
fdeInfo.fdeStart + fdeInfo.fdeLength, cieInfo,
upToPC - fdeInfo.pcStart, rememberStack, arch, results);
+#if !defined(_LIBUNWIND_NO_HEAP)
// Clean up rememberStack. Even in the case where every DW_CFA_remember_state
// is paired with a DW_CFA_restore_state, parseInstructions can skip restore
// opcodes if it reaches the target PC and stops interpreting, so we have to
@@ -410,6 +411,7 @@
free(rememberStack);
rememberStack = next;
}
+#endif
return returnValue;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78926.260344.patch
Type: text/x-patch
Size: 738 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200427/1b8c9ec3/attachment.bin>
More information about the llvm-commits
mailing list