]> granicus.if.org Git - clang/commitdiff
Add comments to test.
authorZhongxing Xu <xuzhongxing@gmail.com>
Wed, 14 Oct 2009 06:05:09 +0000 (06:05 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Wed, 14 Oct 2009 06:05:09 +0000 (06:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84078 91177308-0d34-0410-b5e6-96231b3b80d8

test/Analysis/casts.c

index 19ea6af1b720a4018b67ba8ec5bffb4bac91a43c..ae51ffb69aa5b7fec44e517d2b6fb52bf730b900 100644 (file)
@@ -30,9 +30,9 @@ void f1(struct s **pval) {
   int *tbool = ((void*)0);
   struct s *t = *pval;
   pval = &(t->value);
-  tbool = (int *)pval; // Should record the cast-to type here.
+  tbool = (int *)pval; // use the cast-to type 'int *' to create element region.
   char c = (unsigned char) *tbool; // Should use cast-to type to create symbol.
-  if (*tbool == -1)
+  if (*tbool == -1) // here load the element region with the correct type 'int'
     (void)3;
 }