diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-14 15:56:39 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-10-14 15:56:39 +0000 |
commit | 658c62862e470b59aaf25825de64d93fbaf8cb93 (patch) | |
tree | b802052885bca63e56055f51fb61f8b88ad483c2 /include/llvm/ADT | |
parent | 8e13dedd418b06212369cf03a4131ae694a21f3f (diff) | |
download | external_llvm-658c62862e470b59aaf25825de64d93fbaf8cb93.zip external_llvm-658c62862e470b59aaf25825de64d93fbaf8cb93.tar.gz external_llvm-658c62862e470b59aaf25825de64d93fbaf8cb93.tar.bz2 |
Fix a typo that made ImmutableMap::getMaxElement() useless.
Add a basic unit test for ImmutableMap. Found by inspection.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r-- | include/llvm/ADT/ImmutableSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h index 261d049..3900f96 100644 --- a/include/llvm/ADT/ImmutableSet.h +++ b/include/llvm/ADT/ImmutableSet.h @@ -89,7 +89,7 @@ public: ImutAVLTree* getMaxElement() { ImutAVLTree *T = this; ImutAVLTree *Right = T->getRight(); - while (Right) { T = right; right = T->getRight(); } + while (Right) { T = Right; Right = T->getRight(); } return T; } |