diff options
| -rw-r--r-- | llvm/include/llvm/ADT/ImmutableSet.h | 2 | ||||
| -rw-r--r-- | llvm/include/llvm/ADT/ilist.h | 2 | 
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h index 2db659af7d5..ba1262b077c 100644 --- a/llvm/include/llvm/ADT/ImmutableSet.h +++ b/llvm/include/llvm/ADT/ImmutableSet.h @@ -1000,7 +1000,7 @@ public:    /// isEmpty - Return true if the set contains no elements.    bool isEmpty() const { return !Root; } -   +    /// isSingleton - Return true if the set contains exactly one element.    ///   This method runs in constant time.    bool isSingleton() const { return getHeight() == 1; } diff --git a/llvm/include/llvm/ADT/ilist.h b/llvm/include/llvm/ADT/ilist.h index 6bfc10009d1..9a088fd71e6 100644 --- a/llvm/include/llvm/ADT/ilist.h +++ b/llvm/include/llvm/ADT/ilist.h @@ -386,7 +386,7 @@ public:    }    iterator insertAfter(iterator where, NodeTy *New) { -    if (empty())  +    if (empty())        return insert(begin(), New);      else        return insert(++where, New);  | 

