git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74890 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zhongxing Xu 2009-07-07 01:36:53 +00:00
Родитель bd2ab6e8f6
Коммит db4f5310d7
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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)) {