[MSP430] Fix crash while lowering llvm.stacksave/stackrestore
authorAnton Korobeynikov <anton@korobeynikov.info>
Wed, 9 Jan 2019 12:52:15 +0000 (12:52 +0000)
committerAnton Korobeynikov <anton@korobeynikov.info>
Wed, 9 Jan 2019 12:52:15 +0000 (12:52 +0000)
commit9222ed4485a59903606aa995bbfe157dae6ca69b
treea28d157e8c376be7a1bb092496020e60bb5d5cc5
parent7d497ea2d9b604e127e01bbffe6920fba1251b8b
[MSP430] Fix crash while lowering llvm.stacksave/stackrestore

Perform the usual expansion of stacksave / restore intrinsics.
Patch by Kristina Bessonova!

Differential Revision: https://reviews.llvm.org/D54890

llvm-svn: 350710
llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
llvm/test/CodeGen/MSP430/stacksave_restore.ll [new file with mode: 0644]