summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/no-const-init-cxx2a.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash or wrong code bug if a lifetime-extended temporary contains aRichard Smith2019-10-081-0/+18
"non-constant" value. If the constant evaluator evaluates part of a variable initializer, including the initializer for some lifetime-extended temporary, but fails to fully evaluate the initializer, it can leave behind wrong values for temporaries encountered in that initialization. Don't try to emit those from CodeGen! Instead, look at the values that constant evaluation produced if (and only if) it actually succeeds and we're emitting the lifetime-extending declaration's initializer as a constant. llvm-svn: 374119
OpenPOWER on IntegriCloud