aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-08-23 07:55:51 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-08-23 07:55:51 +0000
commit4e6fbce4277fbc7c574fb2393c7dfe06f014c21a (patch)
treee7e3bb89dec1144843980740fb7feca37e3f0d3c /lib/CodeGen/CodeGenFunction.cpp
parent2b5289b6fd7e3d9899868410a498c081c9595662 (diff)
Relax the construction of a definition for implicit, trivial default
constructors. We perform semantic checking when creating the definition, and this isn't needed in certain contexts (value initialization) but is in others (default initialization). This fixes PR7948. We add explicit code to the default initialization path to ensure the definition is both present and valid. Doug, please review. I think this follows your latest suggestion, and it ended up remarkably cleaner than I anticipated. Also let me know if similar logic should be followed for destructors and copy-constructors. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@111802 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions