[PATCH] D12669: [libcxxabi] Fix alignment of pointers returned by fallback_malloc

Jonathan Roelofs via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 27 09:53:06 PDT 2015

jroelofs added inline comments.

Comment at: src/fallback_malloc.ipp:69
@@ -59,1 +68,3 @@
+// Size: 4
+// Alignment: 2
 struct heap_node {
EricWF wrote:
> compnerd wrote:
> > Make this a set of static_asserts?
> I was going to but I wasn't 100% sure this would be true on all platforms. 
Better to have it fail at compile time so we can at least detect this and decide what to do about it, no?


More information about the cfe-commits mailing list