In some cases, the "fail BB dominator" may be null after the BB was split (and
authorBill Wendling <isanbard@gmail.com>
Mon, 28 Mar 2011 23:02:18 +0000 (23:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 28 Mar 2011 23:02:18 +0000 (23:02 +0000)
commit2d930db24f1d44a9d68c90cb7a1a58e76abd40da
tree261494a0eabcb3420fb3f25c73451ccbd669ab06
parenta7b8c2b6a416052bd7b48d3c0d702d266c6ac3a2
In some cases, the "fail BB dominator" may be null after the BB was split (and
becomes reachable when before it wasn't). Check to make sure that it's not null
before trying to use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128434 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/StackProtector.cpp
test/CodeGen/X86/crash.ll