зеркало из https://github.com/microsoft/clang-1.git
fix comment.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
bd2ab6e8f6
Коммит
db4f5310d7
|
@ -106,8 +106,8 @@ StoreManager::NewCastRegion(const GRState *state, const MemRegion* R,
|
||||||
// the cast-to pointee type is of smaller size. In other cases, we return
|
// the cast-to pointee type is of smaller size. In other cases, we return
|
||||||
// the original VarRegion.
|
// the original VarRegion.
|
||||||
|
|
||||||
// If the pointee or object type is incomplete, do compute their sizes,
|
// If the pointee or object type is incomplete, do not compute their
|
||||||
// and return the original region.
|
// sizes, and return the original region.
|
||||||
QualType ObjTy = cast<TypedRegion>(R)->getValueType(Ctx);
|
QualType ObjTy = cast<TypedRegion>(R)->getValueType(Ctx);
|
||||||
|
|
||||||
if (!IsCompleteType(Ctx, PointeeTy) || !IsCompleteType(Ctx, ObjTy)) {
|
if (!IsCompleteType(Ctx, PointeeTy) || !IsCompleteType(Ctx, ObjTy)) {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче