aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleInfo.cpp
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2015-08-27 21:46:04 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2015-08-27 21:46:04 +0000
commit87166905c8d58e152b06752f5d2f24a09ebbcbde (patch)
tree3588fa419651f825a09c7dee499f47cb530137a9 /llvm/lib/CodeGen/MachineModuleInfo.cpp
parent8f5e331dc2650a6729401ba38aaa04d0e98cd966 (diff)
downloadllvm-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