[llvm-commits] [patch] Don't use alignment of global if global is weak in instcombine

Richard Osborne richard at xmos.com
Mon Sep 17 09:45:06 PDT 2012


I noticed that getPointeeAlignment() in instcombine was incorrectly 
using the alignment of a global even when the global is weak for the 
linker. The attached patch fixes this. OK to commit?

Thanks,

Richard

-- 
Richard Osborne | XMOS
http://www.xmos.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pointee_align.diff
Type: text/x-patch
Size: 1689 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120917/ee626b49/attachment.bin>


More information about the llvm-commits mailing list