commit | 4a3738ebeb2d300bec8acfc7a096c00b68d8cbb5 | [log] [tgz] |
---|---|---|
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 17 00:53:04 2016 +0000 |
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Wed Aug 17 00:53:04 2016 +0000 |
tree | 96ff8adaeeb417efb47a7a0726730e30dd86648c | |
parent | d4e0802b9b7c35e719a9777aaed969bb91d8279e [diff] |
ARM: Avoid dereferencing end() in ARMFrameLowering::emitPrologue llvm::tryFoldSPUpdateIntoPushPop assumes its arguments are valid MachineInstrs. Update ARMFrameLowering::emitPrologue to respect that; when LastPush==end(), it can't possibly be a push instruction anyway. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278880 91177308-0d34-0410-b5e6-96231b3b80d8