mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-15 23:40:54 +00:00
Fix a typo/thinko - this was generating the wrong kind of array
llvm-svn: 280164
This commit is contained in:
parent
a9c929e18f
commit
befba52f89
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user