aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/DebugCounter.cpp
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2018-07-23 21:20:00 +0000
committerManoj Gupta <manojgupta@google.com>2018-07-23 21:20:00 +0000
commitf9f50f634d4d6cae8d844b5a7b764e1159dce8e4 (patch)
tree3b0ccd12702e3591443a9c74aa9e6f49b06f7925 /llvm/lib/Support/DebugCounter.cpp
parent9df80e8248e23f779e396fdd6994b7c2346d937f (diff)
downloadllvm-f9f50f634d4d6cae8d844b5a7b764e1159dce8e4.zip
llvm-f9f50f634d4d6cae8d844b5a7b764e1159dce8e4.tar.gz
llvm-f9f50f634d4d6cae8d844b5a7b764e1159dce8e4.tar.bz2
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 llvm-svn: 337742
Diffstat (limited to 'llvm/lib/Support/DebugCounter.cpp')
0 files changed, 0 insertions, 0 deletions