diff options
author | Chris Lattner <sabre@nondot.org> | 2003-04-25 03:16:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-04-25 03:16:33 +0000 |
commit | 0347cda8b84fd83d80903feb207eb14d60457b09 (patch) | |
tree | af041769436923ee1be7c3f93cc67fe3d166f16a /llvm/tools/bugpoint/ListReducer.h | |
parent | 4a1a9d2cddcb73512d2d025757d31f458f6916bd (diff) | |
download | bcm5719-llvm-0347cda8b84fd83d80903feb207eb14d60457b09.tar.gz bcm5719-llvm-0347cda8b84fd83d80903feb207eb14d60457b09.zip |
Rename Kept -> Suffix
FIX problem where we were incorrectly putting the prefix of the list into the "suffix" list.
llvm-svn: 5926
Diffstat (limited to 'llvm/tools/bugpoint/ListReducer.h')
-rw-r--r-- | llvm/tools/bugpoint/ListReducer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/bugpoint/ListReducer.h b/llvm/tools/bugpoint/ListReducer.h index 7b9a2f11412..a4dee5bc587 100644 --- a/llvm/tools/bugpoint/ListReducer.h +++ b/llvm/tools/bugpoint/ListReducer.h @@ -34,14 +34,14 @@ struct ListReducer { unsigned MidTop = TheList.size(); while (MidTop > 1) { unsigned Mid = MidTop / 2; - std::vector<ElTy> Prefix(TheList.begin()+Mid, TheList.end()); - std::vector<ElTy> Kept (TheList.begin(), TheList.begin()+Mid); + std::vector<ElTy> Prefix(TheList.begin(), TheList.begin()+Mid); + std::vector<ElTy> Suffix(TheList.begin()+Mid, TheList.end()); - switch (doTest(Prefix, Kept)) { + switch (doTest(Prefix, Suffix)) { case KeepSuffix: // The property still holds. We can just drop the prefix elements, and // shorten the list to the "kept" elements. - TheList.swap(Kept); + TheList.swap(Suffix); MidTop = TheList.size(); break; case KeepPrefix: |