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)
commit486fa3977a01d77b06dcb2f8ff918f626a563a0d
tree949948ad99eed11b374e0b4b983e957550414f52
parent3e1ccbe8ba8ac463cde33f8627f78a32b120e68d
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

llvm-svn: 242091
llvm/lib/Transforms/Utils/Local.cpp
llvm/test/Transforms/InstCombine/align-external.ll