diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-08-22 16:15:35 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-08-22 16:15:35 +0000 |
| commit | 630c76efb0e40498d8d8fc27b0d237c82644cdf6 (patch) | |
| tree | b4a96e88b8308ae7cadc355c7c5e2d2020c7ecfc /llvm/lib/CompilerDriver/Action.cpp | |
| parent | fae824a32df7241749d9d030661807e65d8defa9 (diff) | |
| download | llvm-630c76efb0e40498d8d8fc27b0d237c82644cdf6.zip llvm-630c76efb0e40498d8d8fc27b0d237c82644cdf6.tar.gz llvm-630c76efb0e40498d8d8fc27b0d237c82644cdf6.tar.bz2 | |
When performing value-initialization for a class with a non-trivial,
implicitly-defined default constructor, zero-initialize the memory
before calling the default constructor. Previously, we would only
zero-initialize in the case of a trivial default constructor.
Also, simplify the hideous logic that determines when we have a
trivial default constructor and, therefore, don't need to emit any
call at all.
llvm-svn: 111779
Diffstat (limited to 'llvm/lib/CompilerDriver/Action.cpp')
0 files changed, 0 insertions, 0 deletions
