]> granicus.if.org Git - clang/commit
[ODRHash] Handle types in ODR hashing.
authorRichard Trieu <rtrieu@google.com>
Thu, 23 Feb 2017 03:25:57 +0000 (03:25 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 23 Feb 2017 03:25:57 +0000 (03:25 +0000)
commitee4fecad433df890feadf8b3a6dae422dfe4b2f0
treea86d1eaef643562300440c31cbd71a1a8ecfd67f
parent1a04b13fd8f7b63a60f34c0e64dd184559ba8c74
[ODRHash] Handle types in ODR hashing.

Fields will now have their types added to the hash, allowing for detection of
mismatched field types.  This detection allows the existing ODR checking to
produce the correct message.

Differential Revision: https://reviews.llvm.org/D21675

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295931 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ODRHash.cpp
test/Modules/odr_hash.cpp