[Lldb-commits] [lldb] r280164 - Fix a typo/thinko - this was generating the wrong kind of array

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Tue Aug 30 14:33:29 PDT 2016


Author: enrico
Date: Tue Aug 30 16:33:29 2016
New Revision: 280164

URL: http://llvm.org/viewvc/llvm-project?rev=280164&view=rev
Log:
Fix a typo/thinko - this was generating the wrong kind of array


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=280164&r1=280163&r2=280164&view=diff
==============================================================================
--- lldb/trunk/source/Symbol/ClangASTContext.cpp (original)
+++ lldb/trunk/source/Symbol/ClangASTContext.cpp Tue Aug 30 16:33:29 2016
@@ -4573,7 +4573,7 @@ ClangASTContext::GetArrayType (lldb::opa
         clang::QualType qual_type(GetCanonicalQualType(type));
         if (clang::ASTContext *ast_ctx = getASTContext())
         {
-            if (size == 0)
+            if (size != 0)
                 return CompilerType (ast_ctx, ast_ctx->getConstantArrayType(qual_type, llvm::APInt(64, size), clang::ArrayType::ArraySizeModifier::Normal, 0));
             else
                 return CompilerType (ast_ctx, ast_ctx->getIncompleteArrayType(qual_type, clang::ArrayType::ArraySizeModifier::Normal, 0));




More information about the lldb-commits mailing list