]> granicus.if.org Git - clang/commitdiff
Add missing citation.
authorChris Lattner <sabre@nondot.org>
Fri, 13 Jul 2007 22:16:13 +0000 (22:16 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Jul 2007 22:16:13 +0000 (22:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39837 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 5e640b61f9da1c06d8adfb3ace6ecef90ad7d806..63de528821a338b43c704c1c37d956dfcdb94d18 100644 (file)
@@ -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: