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 | 0c139987750f04736d4fa5d328803cb36a975cbd (patch) | |
tree | 74cb6fff2a58fb0ec10cde04e092b2111f9306a3 /tools/bugpoint/ListReducer.h | |
parent | 06943add8b2b764e131979cca064eda9f28826c9 (diff) | |
download | external_llvm-0c139987750f04736d4fa5d328803cb36a975cbd.zip external_llvm-0c139987750f04736d4fa5d328803cb36a975cbd.tar.gz external_llvm-0c139987750f04736d4fa5d328803cb36a975cbd.tar.bz2 |
Rename Kept -> Suffix
FIX problem where we were incorrectly putting the prefix of the list into the "suffix" list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ListReducer.h')
-rw-r--r-- | tools/bugpoint/ListReducer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/bugpoint/ListReducer.h b/tools/bugpoint/ListReducer.h index 7b9a2f1..a4dee5b 100644 --- a/tools/bugpoint/ListReducer.h +++ b/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: |