summaryrefslogtreecommitdiff
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-10-14 15:56:39 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-10-14 15:56:39 +0000
commit658c62862e470b59aaf25825de64d93fbaf8cb93 (patch)
treeb802052885bca63e56055f51fb61f8b88ad483c2 /include/llvm/ADT
parent8e13dedd418b06212369cf03a4131ae694a21f3f (diff)
downloadllvm-658c62862e470b59aaf25825de64d93fbaf8cb93.tar.gz
llvm-658c62862e470b59aaf25825de64d93fbaf8cb93.tar.bz2
llvm-658c62862e470b59aaf25825de64d93fbaf8cb93.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/ImmutableSet.h b/include/llvm/ADT/ImmutableSet.h
index 261d0494e2..3900f96be1 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;
}