[ODRHash] Handle `Integral` and `NullPtr` template parameters in `ODRHash`
authorisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Sun, 8 Jan 2023 13:32:06 +0000 (14:32 +0100)
committerisuckatcs <65320245+isuckatcs@users.noreply.github.com>
Thu, 12 Jan 2023 09:24:50 +0000 (10:24 +0100)
commitd78a7c5012c7ae6ec9991fb22fcd6d06a42dc1cc
tree4cd4d0cff0d8f44724bb7fcf7f03037896148214
parent1dcaa2bdf2300ad5bd28dcdf1b46a68ad1a95f5d
[ODRHash] Handle `Integral` and `NullPtr` template parameters in `ODRHash`

Before this patch the parameters mentioned in the title weren't
handled by ODRHash, when a hash was generated for a template
specialization. This patch adds these parameters to the hash,
so that different template specializations will get different
hashes in every case.

Differential Revision: https://reviews.llvm.org/D141224
clang/lib/AST/ODRHash.cpp
clang/test/Modules/odr_hash.cpp