Add simplify_type<const WeakVH>; simplify IndVarSimplify
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 24 Jun 2015 22:23:21 +0000 (22:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 24 Jun 2015 22:23:21 +0000 (22:23 +0000)
commit817ac8f40a077ff20b98164c569c4063e103d215
tree945ea61df79068af1065a33ebe7b42f0fe7828ce
parentfcda6f8c6bb828c48e6d406a9bf2bc1d55bf9037
Add simplify_type<const WeakVH>; simplify IndVarSimplify

r240214 fixed some UB in IndVarSimplify, and it needed a temporary
`WeakVH` to do it.  Add `simplify_type<const WeakVH>` so that this
temporary isn't necessary.

llvm-svn: 240599
llvm/include/llvm/IR/ValueHandle.h
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp