InstSimplify: Don't try to replace an extractvalue/insertvalue pair with the original...
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Sep 2011 18:16:19 +0000 (18:16 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 5 Sep 2011 18:16:19 +0000 (18:16 +0000)
commitae707bd5594e52a8b385760f99ff58aa8fede948
tree3726515bd8ffa642caf5d49316cef37570f1c7ae
parentad99ef8bf59adf151ac217e3b2ae6abec41f76e6
InstSimplify: Don't try to replace an extractvalue/insertvalue pair with the original value if types don't match.

Fixes clang selfhost.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139120 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/2011-09-05-InsertExtractValue.ll