]> granicus.if.org Git - llvm/commit
Update enforceKnownAlignment after the isWeakForLinker semantic change
authorReid Kleckner <reid@kleckner.net>
Tue, 14 Jul 2015 00:11:08 +0000 (00:11 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 14 Jul 2015 00:11:08 +0000 (00:11 +0000)
commitb53f724f913f6db279795439a90ec83d6ee20ddd
tree6a8cb1e2551fb5c3948bdf6c28b795f989def754
parentc249168837657bf4c3028cb8d6626ffa4b6f1fd2
Update enforceKnownAlignment after the isWeakForLinker semantic change

Previously we would refrain from attempting to increase the linkage of
available_externally globals because they were considered weak for the
linker. Now they are treated more like a declaration instead of a weak
definition.

This was causing SSE alignment faults in Chromuim, when some code
assumed it could increase the alignment of a dllimported global that it
didn't control.  http://crbug.com/509256

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242091 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Utils/Local.cpp
test/Transforms/InstCombine/align-external.ll