Relevant to what? It's usually brought up in discussion of ethics, not law.
If this situation actually arose, there is a substantial possibility that I would not switch the track, in order to avoid being prosecuted for murder. This isn't to say that I "endorse" that (in)action; I would prefer a legal code under which that wouldn't happen, and would vote for legislators who committed to changing the law in that way.
Discussions of "law" aren't discussions of which laws to make; those are called discussions of "policy", and they are in my opinion the place where ethical considerations are most relevant.
Despite being (IMO) a philosophy blog, many Less Wrongers tend to disparage mainstream philosophy and emphasize the divergence between our beliefs and theirs. But, how different are we really? My intention with this post is to quantify this difference.
The questions I will post as comments to this article are from the 2009 PhilPapers Survey. If you answer "other" on any of the questions, then please reply to that comment in order to elaborate your answer. Later, I'll post another article comparing the answers I obtain from Less Wrongers with those given by the professional philosophers. This should give us some indication about the differences in belief between Less Wrong and mainstream philosophy.
Glossary
analytic-synthetic distinction, A-theory and B-theory, atheism, compatibilism, consequentialism, contextualism, correspondence theory of truth, deontology, egalitarianism, empiricism, Humeanism, libertarianism, mental content externalism, moral realism, moral motivation internalism and externalism, naturalism, nominalism, Newcomb's problem, physicalism, Platonism, rationalism, relativism, scientific realism, trolley problem, theism, virtue ethics
Note
Thanks pragmatist, for attaching short (mostly accurate) descriptions of the philosophical positions under the poll comments.
Post Script
The polls stopped rendering correctly after the migration to LW 2.0, but the raw data can be found in this repo.