Now that hasConstantValue has been made simpler, it may return the
authorDuncan Sands <baldrick@free.fr>
Wed, 17 Nov 2010 10:23:23 +0000 (10:23 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 17 Nov 2010 10:23:23 +0000 (10:23 +0000)
commit23a19572b2839ee3a6a3520d60d62a465cec7d53
treec2c21d4d19c1585eb138cca7ce5279c97b01a7ee
parentbaa45f7298c266f0f89b17e50e9d98709dde84d7
Now that hasConstantValue has been made simpler, it may return the
phi node itself if it occurs in an unreachable basic block.  Protect
against this.  Hopefully this will fix some more buildbots.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119493 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/Lint.cpp
lib/VMCore/BasicBlock.cpp