diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-19 17:31:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-19 17:31:02 +0000 |
commit | 0be2ef2321b1283ead38ebeb83b451335d90e0fe (patch) | |
tree | 372f28a65619cad75bac4cdbc0133bec25fbf575 /lib/AST/ASTContext.cpp | |
parent | d8895f64c46054b1e9cf17f96320cfa51349a35c (diff) |
Fix PR3619 by properly considering size modifiers and type quals when
uniquing array types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 024fbf8968..5c02100ec4 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -963,7 +963,7 @@ QualType ASTContext::getConstantArrayType(QualType EltTy, ArrayType::ArraySizeModifier ASM, unsigned EltTypeQuals) { llvm::FoldingSetNodeID ID; - ConstantArrayType::Profile(ID, EltTy, ArySize); + ConstantArrayType::Profile(ID, EltTy, ArySize, ASM, EltTypeQuals); void *InsertPos = 0; if (ConstantArrayType *ATP = @@ -1031,7 +1031,7 @@ QualType ASTContext::getIncompleteArrayType(QualType EltTy, ArrayType::ArraySizeModifier ASM, unsigned EltTypeQuals) { llvm::FoldingSetNodeID ID; - IncompleteArrayType::Profile(ID, EltTy); + IncompleteArrayType::Profile(ID, EltTy, ASM, EltTypeQuals); void *InsertPos = 0; if (IncompleteArrayType *ATP = |