[Bugpoint] fix use-after-move. NFC
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 21 May 2019 17:55:26 +0000 (17:55 +0000)
committerNick Desaulniers <ndesaulniers@google.com>
Tue, 21 May 2019 17:55:26 +0000 (17:55 +0000)
commit92febc64980f0bdd3f6aa7455927b780178651de
tree5585605c9a227fa88986989868060e39fed14442
parente97b5f5cf37e382643b567affd714823215d0e75
[Bugpoint] fix use-after-move. NFC

Summary:
This was flagged in https://www.viva64.com/en/b/0629/ under "Snippet No.
6".

Note that author also states:
"Note that the loop doesn't actually execute at all."

This is not true, but the author can be forgiven; there's two distinct
variables with very similar identifiers:

MiscompiledFunctions
MisCompFunctions

Reviewers: echristo, srhines, RKSimon

Reviewed By: RKSimon

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D62113

llvm-svn: 361279
llvm/tools/bugpoint/Miscompilation.cpp