diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-13 22:16:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-13 22:16:13 +0000 |
commit | 7ab2ed8e881ffdc84e890f5265c41b930df17cee (patch) | |
tree | 3759dea694f0b00e87a3027983872d2e47394412 | |
parent | bacfa02138dce5e380bca924b2c9c40bf7959aab (diff) |
Add missing citation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39837 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/ASTContext.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/AST/ASTContext.cpp b/AST/ASTContext.cpp index 5e640b61f9..63de528821 100644 --- a/AST/ASTContext.cpp +++ b/AST/ASTContext.cpp @@ -171,7 +171,8 @@ unsigned ASTContext::getTypeSize(QualType T) { // FIXME: need to use TargetInfo again return sizeof(void *) * 8; case Type::Reference: - // seems that sizeof(T&) == sizeof(T) -- spec reference? + // "When applied to a reference or a reference type, the result is the size + // of the referenced type." C++98 5.3.3p2: expr.sizeof return getTypeSize(cast<ReferenceType>(T)->getReferenceeType()); case Type::Complex: case Type::Array: |