]> granicus.if.org Git - clang/commit
Teach HasSideEffect about InitListExprs. Not having
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2010 17:34:23 +0000 (17:34 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2010 17:34:23 +0000 (17:34 +0000)
commit363ff23cfddb51abe4ee4212a6dd3c9b534fcc8b
treee2e545cd763c9f17e2705590a7cdc04aa4538df8
parent553e583e1d30fe30ac2de3526536bbebee6da1ce
Teach HasSideEffect about InitListExprs.  Not having
this caused us to codegen dead globals like this:

struct foo { int a; int b; };

static struct foo fooarray[] = {
  {1, 2},
  {4},
};

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101150 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp