ValueMapper: Always use Mapper::mapValue from remapInstruction, NFCI
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 8 Apr 2016 19:17:13 +0000 (19:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 8 Apr 2016 19:17:13 +0000 (19:17 +0000)
commitadcebdf2d1db958be01ef9b9f52ec7d9bccb27dc
tree1c681bdf5eb1dcbff37752f0838fc197066e604c
parenta574e7a7a4fe727d315685ab4e67d02cf6e76471
ValueMapper: Always use Mapper::mapValue from remapInstruction, NFCI

Use Mapper::mapValue instead of llvm::MapValue from
Mapper::remapInstruction when mapping an incoming block for a PHINode
(follow-up to r265832).  This will implicitly pass along the
Materializer argument, but when this code was added in r133513 there was
no Materializer argument.  I suspect this call to MapValue was just
missed in r182776 since it's not observable (basic blocks can't be
materialized, and they don't reference other values).

llvm-svn: 265833
llvm/lib/Transforms/Utils/ValueMapper.cpp