| commit | 087dc8b83197db9e0f87885da20feea574343c3f | [log] [tgz] |
|---|---|---|
| author | David Majnemer <david.majnemer@gmail.com> | Sun Jan 04 07:36:02 2015 +0000 |
| committer | David Majnemer <david.majnemer@gmail.com> | Sun Jan 04 07:36:02 2015 +0000 |
| tree | 454da0ce168c6ec5b8523bbfac026f316c776042 | |
| parent | 6ee8d17bc61d6a7e479b349d7f48edeabe61791f [diff] |
InstCombine: match can find ConstantExprs, don't assume we have a Value We assumed the output of a match was a Value, this would cause us to assert because we would fail a cast<>. Instead, use a helper in the Operator family to hide the distinction between Value and Constant. This fixes PR22087. llvm-svn: 225127