[Lldb-commits] [lldb] r154181 - /lldb/trunk/source/Symbol/ClangASTContext.cpp
Greg Clayton
gclayton at apple.com
Fri Apr 6 10:38:55 PDT 2012
Author: gclayton
Date: Fri Apr 6 12:38:55 2012
New Revision: 154181
URL: http://llvm.org/viewvc/llvm-project?rev=154181&view=rev
Log:
Check if the two clang opaque type pointers are equal before doing anything more exhaustive comparison.
Modified:
lldb/trunk/source/Symbol/ClangASTContext.cpp
Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Symbol/ClangASTContext.cpp?rev=154181&r1=154180&r2=154181&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Fri Apr 6 12:38:55 2012
@@ -1045,6 +1045,9 @@
clang_type_t type2,
bool ignore_qualifiers)
{
+ if (type1 == type2)
+ return true;
+
QualType type1_qual = QualType::getFromOpaquePtr(type1);
QualType type2_qual = QualType::getFromOpaquePtr(type2);
More information about the lldb-commits
mailing list