diff options
author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-08-27 21:46:04 +0000 |
---|---|---|
committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2015-08-27 21:46:04 +0000 |
commit | 87166905c8d58e152b06752f5d2f24a09ebbcbde (patch) | |
tree | 3588fa419651f825a09c7dee499f47cb530137a9 /llvm/lib/CodeGen/MachineModuleInfo.cpp | |
parent | 8f5e331dc2650a6729401ba38aaa04d0e98cd966 (diff) | |
download | llvm-87166905c8d58e152b06752f5d2f24a09ebbcbde.zip llvm-87166905c8d58e152b06752f5d2f24a09ebbcbde.tar.gz llvm-87166905c8d58e152b06752f5d2f24a09ebbcbde.tar.bz2 |
[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.
llvm-svn: 246217
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleInfo.cpp')
0 files changed, 0 insertions, 0 deletions