]> granicus.if.org Git - clang/commit
CodeGen: Copy-ctorm must obey the destination's alignment requirement
authorDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Feb 2015 23:04:06 +0000 (23:04 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Tue, 3 Feb 2015 23:04:06 +0000 (23:04 +0000)
commit157632303ee7fe703d351a656114b5701ac5b8fa
tree3a3d3ef9ebe5becb6b03572afdb23f45686045c2
parent41c5887917db2aba647714cfad1e675d6d93cd1e
CodeGen: Copy-ctorm must obey the destination's alignment requirement

We would synthesize memcpy intrinsics when emitting calls to trivial C++
constructors but we wouldn't take into account the alignment of the
destination.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@228061 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGClass.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGenCXX/copy-constructor-elim.cpp