From 18e7a3d403d4271408aceb406d0e50110832f5d8 Mon Sep 17 00:00:00 2001 From: Zhongxing Xu Date: Wed, 14 Oct 2009 06:05:09 +0000 Subject: [PATCH] Add comments to test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84078 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Analysis/casts.c | 4 ++-- 1 file 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; } -- 2.50.1