зеркало из https://github.com/microsoft/clang-1.git
Add missing citation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39837 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
bacfa02138
Коммит
7ab2ed8e88
|
@ -171,7 +171,8 @@ unsigned ASTContext::getTypeSize(QualType T) {
|
||||||
// FIXME: need to use TargetInfo again
|
// FIXME: need to use TargetInfo again
|
||||||
return sizeof(void *) * 8;
|
return sizeof(void *) * 8;
|
||||||
case Type::Reference:
|
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());
|
return getTypeSize(cast<ReferenceType>(T)->getReferenceeType());
|
||||||
case Type::Complex:
|
case Type::Complex:
|
||||||
case Type::Array:
|
case Type::Array:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче