summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/lib/Analysis/Store.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Analysis/Store.cpp b/clang/lib/Analysis/Store.cpp
index bc5d6c25a96..d7633a46ac9 100644
--- a/clang/lib/Analysis/Store.cpp
+++ b/clang/lib/Analysis/Store.cpp
@@ -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 original VarRegion.
- // If the pointee or object type is incomplete, do compute their sizes,
- // and return the original region.
+ // If the pointee or object type is incomplete, do not compute their
+ // sizes, and return the original region.
QualType ObjTy = cast<TypedRegion>(R)->getValueType(Ctx);
if (!IsCompleteType(Ctx, PointeeTy) || !IsCompleteType(Ctx, ObjTy)) {
OpenPOWER on IntegriCloud