add a validity check that was missed, fixing a crash on the
authorChris Lattner <sabre@nondot.org>
Sat, 1 Jan 2011 20:12:04 +0000 (20:12 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 1 Jan 2011 20:12:04 +0000 (20:12 +0000)
commitbafa117e8f2e3532f391227ebc9d4513b17edbad
treeae37f49cde3d29fd2df71b71e87340c9bb5f1b33
parent124708d9b47cc53cb11d8bfed75b241b6eec86d4
add a validity check that was missed, fixing a crash on the
new testcase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122662 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
test/Transforms/LoopIdiom/basic.ll