Extended trolley problem

I just ran across this article, Should a self-driving car kill its passengers in a “greater good” scenario? Though the article does not say so, it is the trolley problem, but with a twist: You are the driver of the trolley, and you have to ask whether you ought to be sacrificed for the greater good. That is, there are now three possibilities, not two: do nothing and kill five people; swerve and kill one; or (the added possibility) swerve and kill yourself. Any thoughts?