]> granicus.if.org Git - clang/commit
Inline a special case of EmitAggregateCopy into EmitNullInitialization
authorJohn McCall <rjmccall@apple.com>
Sat, 7 Aug 2010 08:21:30 +0000 (08:21 +0000)
committerJohn McCall <rjmccall@apple.com>
Sat, 7 Aug 2010 08:21:30 +0000 (08:21 +0000)
commit9021718882441dd391a1960084580d3cd19c423a
treeda6d1dd06ee722faa32105c1c54859db107bef0f
parentf8cf0b028c7a5b632c3a711813cd44a9d9642537
Inline a special case of EmitAggregateCopy into EmitNullInitialization
to avoid the awesome-but-wrong-in-this-case assertion in the canon EAC.
Fixes PR7834.

Also fix a subtle address-space bug in the memset path.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110511 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenFunction.cpp
test/CodeGenCXX/value-init.cpp