From: Richard Trieu Date: Thu, 17 Dec 2015 21:56:22 +0000 (+0000) Subject: Fix r255875, use '<' instead of '==' for 'operator<' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=688d26d1edffb234c75e82ab459d40ce5f52ad73;p=clang Fix r255875, use '<' instead of '==' for 'operator<' Aaron Ballman pointed out a typo from the copy and paste in r255875. This will preserve the strict weak ordering when comparing DynTypedNode. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255929 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTTypeTraits.h b/include/clang/AST/ASTTypeTraits.h index a1aad0bd2a..dcaac802c1 100644 --- a/include/clang/AST/ASTTypeTraits.h +++ b/include/clang/AST/ASTTypeTraits.h @@ -272,7 +272,7 @@ public: return NodeKind < Other.NodeKind; if (ASTNodeKind::getFromNodeKind().isSame(NodeKind)) - return getUnchecked().getAsOpaquePtr() == + return getUnchecked().getAsOpaquePtr() < Other.getUnchecked().getAsOpaquePtr(); if (ASTNodeKind::getFromNodeKind().isSame(NodeKind)) {