[cfe-commits] r84078 - /cfe/trunk/test/Analysis/casts.c
Zhongxing Xu
xuzhongxing at gmail.com
Tue Oct 13 23:05:09 PDT 2009
Author: zhongxingxu
Date: Wed Oct 14 01:05:09 2009
New Revision: 84078
URL: http://llvm.org/viewvc/llvm-project?rev=84078&view=rev
Log:
Add comments to test.
Modified:
cfe/trunk/test/Analysis/casts.c
Modified: cfe/trunk/test/Analysis/casts.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/casts.c?rev=84078&r1=84077&r2=84078&view=diff
==============================================================================
--- cfe/trunk/test/Analysis/casts.c (original)
+++ cfe/trunk/test/Analysis/casts.c Wed Oct 14 01:05:09 2009
@@ -30,9 +30,9 @@
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;
}
More information about the cfe-commits
mailing list