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)
commita0b4ef1f70c7b5241799d0d1b733b65f245a7d3c
treeb4013e7445f391e56bd511339d834b5c148a4219
parent72260ba601605e0ee0fd5e5ca584197f3b261260
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240599 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/ValueHandle.h
lib/Transforms/Scalar/IndVarSimplify.cpp