aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@gmail.com>2009-10-14 06:05:09 +0000
committerZhongxing Xu <xuzhongxing@gmail.com>2009-10-14 06:05:09 +0000
commit18e7a3d403d4271408aceb406d0e50110832f5d8 (patch)
tree9ada7d7faa183a3d7ffa5b3217210b99b11d79d6
parent278b9f06933c385ffbccc15f8491787470cb4a1b (diff)
Add comments to test.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84078 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/Analysis/casts.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Analysis/casts.c b/test/Analysis/casts.c
index 19ea6af1b7..ae51ffb69a 100644
--- a/test/Analysis/casts.c
+++ b/test/Analysis/casts.c
@@ -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;
}