]> granicus.if.org Git - clang/commit
Array and struct variables do have lvalue. For example,
authorZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Oct 2008 01:51:27 +0000 (01:51 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Fri, 17 Oct 2008 01:51:27 +0000 (01:51 +0000)
commitcb3a795d9d69b24af77588e66a02c3d3d5b3dd8f
treedcf5aa5ad4b21c160d64df9c8b8795a98cdffc3b
parent5273f514a1e8dd5f5ebd0f94d2c59f7e0e88a674
Array and struct variables do have lvalue. For example,
struct s {};
void f() {
  int a[10];
  int (*p)[10];
  p = &a;
  (*p)[3] =1;

  struct s d;
  struct s *q;
  q = &d;
}

We return the corresponding MemRegionVal for them.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@57664 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/BasicStore.cpp