]> granicus.if.org Git - clang/commit
Tweak changes in r186464 to avoid a crash.
authorEli Friedman <eli.friedman@gmail.com>
Tue, 1 Oct 2013 00:28:29 +0000 (00:28 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Tue, 1 Oct 2013 00:28:29 +0000 (00:28 +0000)
commit9b93f206d89dbf86805b610b417bb874f7f446e8
treee44e2e2d02300fe032299fad50d986102e2be946
parent8a3f9e46cb988d2c664395b21910091e3730ae82
Tweak changes in r186464 to avoid a crash.

Currently, IR generation can't handle file-scope compound literals with
non-constant initializers in C++.

Fixes PR17415 (the first crash in the bug).

(We should probably change (T){1,2,3} to use the same codepath as T{1,2,3} in
C++ eventually, given that the semantics of the latter are actually defined by
the standard.)

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191719 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/Expr.cpp
lib/Sema/SemaExpr.cpp
test/SemaCXX/compound-literal.cpp