Fix AArch64 prologue for empty frame with dynamic allocas.
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 10 Jul 2015 21:24:07 +0000 (21:24 +0000)
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>
Fri, 10 Jul 2015 21:24:07 +0000 (21:24 +0000)
commit61b8d4a9df1c927d2c021f7a42e6f60c96474eab
tree85c89df09e9561591f3d81cc2b8c883c14ab8cde
parent020938f3ee30e3635d02d2936127abc77ef664ac
Fix AArch64 prologue for empty frame with dynamic allocas.

Fixes PR23804: assertion failure in emitPrologue in the case of a
function with an empty frame and a dynamic alloca that needs stack
realignment. This is a typical case for AddressSanitizer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241943 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64FrameLowering.cpp
test/CodeGen/AArch64/aarch64-dynamic-stack-layout.ll