[PATCH] D104808: [clang][emscripten] Reduce alignof long double from 16 to 8 bytes

Richard Smith - zygoloid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 23 12:39:30 PDT 2021


rsmith added inline comments.


================
Comment at: clang/lib/Basic/Targets/OSTargets.h:954-956
+    // Keeping the alignment of long double to 8 bytes even though its size is
+    // 16 bytes alows emscripten to have an 8-byte-aligned max_align_t which
+    // in turn gives is a 8-byte aligned malloc.
----------------



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D104808/new/

https://reviews.llvm.org/D104808



More information about the cfe-commits mailing list