[cfe-commits] Patch for pr9027

jahanian fjahanian at apple.com
Fri Jan 25 12:28:03 PST 2013


Please review this patch for pr9027 (also // rdar://11861085)

Title: [PR9027] volatile struct bug: member is not loaded at -O;

This is caused by last flag passed to @llvm.memcpy being false, not honoring that
aggregate has at least one 'volatile' data member (even though aggregate itself has
not been qualified as 'volatile'. As a result, optimization optimizes away the memcpy altogether.

Fix is combination of Sema and IRGen changes.

Please review.

- Thanks, Fariborz

	
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr9027.txt
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130125/d99b7660/attachment.txt>


More information about the cfe-commits mailing list