]> granicus.if.org Git - clang/commit
Ensure canonical type is actually canonical.
authorRichard Trieu <rtrieu@google.com>
Thu, 30 Aug 2018 01:57:52 +0000 (01:57 +0000)
committerRichard Trieu <rtrieu@google.com>
Thu, 30 Aug 2018 01:57:52 +0000 (01:57 +0000)
commit35db833915e85f768ac95feb529a0c48c5663454
treea10cc1ac840134a55901c01eeaad60a291f40573
parentb9ef8cb5d0a5501643befcdcf6bef0a3dfa9e205
Ensure canonical type is actually canonical.

ASTContext::applyObjCProtocolQualifiers will return a canonical type when given
a canonical type and an array of canonical protocols.  If the protocols are not
canonical then the returned type is also not canonical.  Since a canonical type is needed, canonicalize the returned type before using it.  This later prevents
a type from having a non-canonical canonical type.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@341013 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/Modules/odr_hash.mm [new file with mode: 0644]