[llvm-bugs] [Bug 28754] New: UBSan reports false positives on unaligned memory accesses on MS ABI
llvm-bugs at lists.llvm.org
Thu Jul 28 09:57:38 PDT 2016
Bug ID: 28754
Summary: UBSan reports false positives on unaligned memory
accesses on MS ABI
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: resistor at mac.com
CC: llvm-bugs at lists.llvm.org
Microsoft explicitly documents unaligned memory accesses on scalar types to be
allowed under their ABI, though natural alignment is still recommended for
performance reasons. UBSan still reports errors on unaligned scalar accesses,
leading to false positives on code that is compliant with the MS ABI.
Note that Microsoft's document does still require natural alignment for members
of unions and aggregates.
MS alignment documentation for scalar types:
MS alignment documentation for unions and aggregates:
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs