diff options
| author | Chris Lattner <sabre@nondot.org> | 2008-04-02 06:06:35 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2008-04-02 06:06:35 +0000 |
| commit | 53be405c3a181c565c3f01888eda100016229471 (patch) | |
| tree | e4cf74f3b526ac3b8f92221db393268b47fe3bf3 /clang/lib/AST/ASTContext.cpp | |
| parent | 20c9e4cbee2e55715f97e3688f18fa9f9c66eed3 (diff) | |
| download | bcm5719-llvm-53be405c3a181c565c3f01888eda100016229471.tar.gz bcm5719-llvm-53be405c3a181c565c3f01888eda100016229471.zip | |
Add a citation.
llvm-svn: 49080
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index b9b1af1ce54..ce2e58fa354 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -983,7 +983,9 @@ QualType ASTContext::getArrayDecayedType(QualType Ty) { PointerQuals = PrettyArrayType->getIndexTypeQualifier(); } - // Apply any CVR qualifiers from the array type. + // Apply any CVR qualifiers from the array type to the element type. This + // implements C99 6.7.3p8: "If the specification of an array type includes + // any type qualifiers, the element type is so qualified, not the array type." EltTy = EltTy.getQualifiedType(ArrayQuals | EltTy.getCVRQualifiers()); QualType PtrTy = getPointerType(EltTy); |

