diff --git a/include/clang/AST/DeclBase.h b/include/clang/AST/DeclBase.h
index ab36054969b8b757936f18b0e4a0d384d6ed4b75..20f46a41720bf364c510b65acd2712cefd5cc747 100644
--- a/include/clang/AST/DeclBase.h
+++ b/include/clang/AST/DeclBase.h
@@ -590,6 +590,12 @@ public:
   /// \brief Whether this particular Decl is a canonical one.
   bool isCanonicalDecl() const { return getCanonicalDecl() == this; }
 
+  /// \brief Determine whether this declaration declares the same entity as
+  /// the other declaration.
+  bool isSameEntityAs(const Decl *Other) const {
+    return getCanonicalDecl() == Other->getCanonicalDecl();
+  }
+  
 protected:
   /// \brief Returns the next redeclaration or itself if this is the only decl.
   ///