diff options
| author | Greg Clayton <gclayton@apple.com> | 2012-04-06 17:38:55 +0000 |
|---|---|---|
| committer | Greg Clayton <gclayton@apple.com> | 2012-04-06 17:38:55 +0000 |
| commit | 55995ebb58d852fcdf08b4d0e57d74a51973e811 (patch) | |
| tree | 6e6619371ea034715c43f5a7360fe0e121209bbf | |
| parent | c1c9cdab231ed88b5433e0b6e9001a9f175fa67f (diff) | |
| download | bcm5719-llvm-55995ebb58d852fcdf08b4d0e57d74a51973e811.tar.gz bcm5719-llvm-55995ebb58d852fcdf08b4d0e57d74a51973e811.zip | |
Check if the two clang opaque type pointers are equal before doing anything more exhaustive comparison.
llvm-svn: 154181
| -rw-r--r-- | lldb/source/Symbol/ClangASTContext.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp index 88e18a5db52..03424aba2bf 100644 --- a/lldb/source/Symbol/ClangASTContext.cpp +++ b/lldb/source/Symbol/ClangASTContext.cpp @@ -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); |

