]> granicus.if.org Git - llvm/commit
[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)
commitaf8a5d74d66383afe043a42c44771a79a6622264
tree96d50ed0feee4af27560a338d88259c2718589b2
parentf0b21edf5810b29298c4fa4695b2298581617f5a
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361279 91177308-0d34-0410-b5e6-96231b3b80d8
tools/bugpoint/Miscompilation.cpp