Avoid crashing if instruction is not part of a loop.
authorTorok Edwin <edwintorok@gmail.com>
Mon, 27 Oct 2008 10:18:45 +0000 (10:18 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Mon, 27 Oct 2008 10:18:45 +0000 (10:18 +0000)
commitc83889ad906b130f39ba8f776111e51439c2a7ac
tree0e6ffc443701268bf77529933f4e47b19f3b7333
parent6f038f4140615380e493dc6a7cff42b0f3061301
Avoid crashing if instruction is not part of a loop.
If it is not part of a loop it is obviously invariant wrt to all loops.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58240 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopVR.cpp