[LegacyPM] Avoid a redundant map lookup in setLastUser. NFC.
authorJay Foad <jay.foad@amd.com>
Thu, 26 Nov 2020 16:48:14 +0000 (16:48 +0000)
committerJay Foad <jay.foad@amd.com>
Fri, 27 Nov 2020 10:42:01 +0000 (10:42 +0000)
commit68ed6447855632b954b55f63807481eaa44705df
tree7072a1063e5674cbc834fc5f0ea1c799a1d4ea81
parent0d9166ff79578c7e98cef8c554e1342ece8efee6
[LegacyPM] Avoid a redundant map lookup in setLastUser. NFC.

As a bonus this makes it (IMO) obvious that the iterator is not
invalidated, so remove the comment explaining that.
llvm/lib/IR/LegacyPassManager.cpp