Revert "Remove unnecessary null check. NFC."
authorPete Cooper <peter_cooper@apple.com>
Mon, 27 Jul 2015 18:37:58 +0000 (18:37 +0000)
committerPete Cooper <peter_cooper@apple.com>
Mon, 27 Jul 2015 18:37:58 +0000 (18:37 +0000)
commit2deaa2924e52f1e07102b395302e8a72d92d716c
treea1b8c067458decc0d64ef4a45aafd8e4f0ae2d9e
parentfd8928ded9fa74d7127d4277440d5928145ebc7e
Revert "Remove unnecessary null check.  NFC."

This reverts commit r243167.

Duncan pointed out that dyn_cast can return null in these cases, so this
was an unsafe commit to make.  Sorry for the noise.

Worryingly there were no tests which fail...

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243302 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopInterchange.cpp