commit | 69019c5399ca9ddfb9ab72366008ec693d3956ec | [log] [tgz] |
---|---|---|
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Thu Aug 27 21:46:04 2015 +0000 |
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | Thu Aug 27 21:46:04 2015 +0000 |
tree | 5801896800a5f909ab337394973295daba068147 | |
parent | bfe0f6957bccfcde83f323aec4d3a164bc0c3c7d [diff] |
[CodeGen] Check FoldConstantArithmetic result before using it. Fixes PR24602: r245689 introduced an unguarded use of SelectionDAG::FoldConstantArithmetic, which returns 0 when it fails because of opaque (hoisted) constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246217 91177308-0d34-0410-b5e6-96231b3b80d8