HomePhabricator

ConstantFolding: Avoid a crash.

Description

ConstantFolding: Avoid a crash.

Summary:
Check if the parent basic block and caller exists
before calling CS.getCaller when constant folding
strip.invariant.group instrinsic.

This avoids a crash when the function containing the intrinsic
is being inlined. The instruction is checked for any simplifiction
but has not yet been added to a basic block.

Reviewers: Prazek, rsmith, efriedma

Reviewed By: efriedma

Subscribers: eraman, llvm-commits

Differential Revision: https://reviews.llvm.org/D49690

Details

Committed
manojguptaJul 23 2018, 2:20 PM
Reviewer
efriedma
Differential Revision
D49690: ConstantFolding: Avoid a crash.
Parents
rL337741: [cmake] Remove unused ${LLDB_PLUGINS} dependency from our Objective-C++ CMake…
Branches
Unknown
Tags
Unknown