[Stack Alignment] emit warning instead of a hard error
authorManman Ren <mren@apple.com>
Mon, 4 Feb 2013 23:45:08 +0000 (23:45 +0000)
committerManman Ren <mren@apple.com>
Mon, 4 Feb 2013 23:45:08 +0000 (23:45 +0000)
commit91b978e15774039f991cf91048dc4cc74726744b
tree620ffd1d626abfce1103611ee2f00457e8d3c8d2
parentf9271ea159b97e2febedcf095c3c4122cb24d077
[Stack Alignment] emit warning instead of a hard error

Per discussion in rdar://13127907, we should emit a hard error only if
people write code where the requested alignment is larger than achievable
and assumes the low bits are zeros. A warning should be good enough when
we are not sure if the source code assumes the low bits are zeros.

rdar://13127907

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174336 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineFunction.cpp
test/CodeGen/ARM/alloc-no-stack-realign-error.ll