forked from OSchip/llvm-project
Check if the two clang opaque type pointers are equal before doing anything more exhaustive comparison.
llvm-svn: 154181
This commit is contained in:
parent
c1c9cdab23
commit
55995ebb58
|
@ -1045,6 +1045,9 @@ ClangASTContext::AreTypesSame (ASTContext *ast,
|
|||
clang_type_t type2,
|
||||
bool ignore_qualifiers)
|
||||
{
|
||||
if (type1 == type2)
|
||||
return true;
|
||||
|
||||
QualType type1_qual = QualType::getFromOpaquePtr(type1);
|
||||
QualType type2_qual = QualType::getFromOpaquePtr(type2);
|
||||
|
||||
|
|
Loading…
Reference in New Issue