projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9c929e
)
Fix a typo/thinko - this was generating the wrong kind of array
author
Enrico Granata
<egranata@apple.com>
Tue, 30 Aug 2016 21:33:29 +0000
(21:33 +0000)
committer
Enrico Granata
<egranata@apple.com>
Tue, 30 Aug 2016 21:33:29 +0000
(21:33 +0000)
llvm-svn: 280164
lldb/source/Symbol/ClangASTContext.cpp
patch
|
blob
|
history
diff --git
a/lldb/source/Symbol/ClangASTContext.cpp
b/lldb/source/Symbol/ClangASTContext.cpp
index
9cc8550
..
21cfeff
100644
(file)
--- 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));