Simplify handleOperandChangeImpl() removing last argument (NFC)
authorMehdi Amini <mehdi.amini@apple.com>
Wed, 10 Feb 2016 22:47:15 +0000 (22:47 +0000)
committerMehdi Amini <mehdi.amini@apple.com>
Wed, 10 Feb 2016 22:47:15 +0000 (22:47 +0000)
commit8914d29008a98dd8bef764240d45b5bdb3cc8f9d
tree4bc9a75f4f865e8490df59097bce32974c269484
parent4fc6044a5ed9fd339f46d18980360a40c98b11d5
Simplify handleOperandChangeImpl() removing last argument (NFC)

The Use argument was used to compute the operand number for a fast
path when replacing only one operand. However we always have to go
through all the operands. So the argument number can be recomputed
locally anyway.

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 260454
llvm/include/llvm/IR/Constant.h
llvm/include/llvm/IR/Constants.h
llvm/include/llvm/IR/GlobalValue.h
llvm/lib/IR/Constants.cpp
llvm/lib/IR/Globals.cpp
llvm/lib/IR/Value.cpp