diff --git a/llvm/include/llvm/ADT/ImmutableSet.h b/llvm/include/llvm/ADT/ImmutableSet.h index 5871054315334..a6a6abfd96001 100644 --- a/llvm/include/llvm/ADT/ImmutableSet.h +++ b/llvm/include/llvm/ADT/ImmutableSet.h @@ -205,8 +205,7 @@ class ImutAVLTree { ImutInfo::KeyOfValue(getValue()))) && "Value in left child is not less that current value"); - - assert(!(getRight() || + assert((!getRight() || ImutInfo::isLess(ImutInfo::KeyOfValue(getValue()), ImutInfo::KeyOfValue(getRight()->getValue()))) && "Current value is not less that value of right child");