summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/source/Symbol/ClangASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Symbol/ClangASTContext.cpp b/lldb/source/Symbol/ClangASTContext.cpp
index 9cc8550c360..21cfeffdb18 100644
--- a/lldb/source/Symbol/ClangASTContext.cpp
+++ b/lldb/source/Symbol/ClangASTContext.cpp
@@ -4573,7 +4573,7 @@ ClangASTContext::GetArrayType (lldb::opaque_compiler_type_t type, uint64_t size)
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));
OpenPOWER on IntegriCloud