On Dec 14, 2011, at 6:04 PM, Chandler Carruth wrote:

> On Wed, Dec 14, 2011 at 3:59 PM, Douglas Gregor <[email protected]> wrote:
> +/// \brief Determine whether two declarations declare the same entity.
> +inline bool declaresSameEntity(const Decl *D1, const Decl *D2) {
> +  if (D1 == D2)
> +    return true;
> +
> +  if (!D1 || !D2)
> +    return false;
> 
> I find this very surprising. I would expect either being NULL to always 
> return false... Was this intentional? If so, I would comment about it.


It is weird. I've fixed it in r146659, thanks!

        - Doug
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to