[ValueTracking] Fix an assert from r340480.
authorCraig Topper <craig.topper@intel.com>
Thu, 23 Aug 2018 17:15:02 +0000 (17:15 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 23 Aug 2018 17:15:02 +0000 (17:15 +0000)
commit15f869238140e45f4a9331429bd42f1254e77259
tree24a622743cb994d91c6d2c10659ec0c5f9d75f06
parent354d1cc7185d396f5a732f8cd3610a7d0ae3829d
[ValueTracking] Fix an assert from r340480.

We need to allow ConstantExpr Selects in addition to SelectInst.

I'll try to put together a test case, but I wanted to fix the issues being reported.

Fixes PR38677

llvm-svn: 340546
llvm/lib/Analysis/ValueTracking.cpp