]> granicus.if.org Git - clang/commit
Remove nonsense and simplify. To forward a reference, we always just load the
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 14 Jun 2016 01:13:21 +0000 (01:13 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 14 Jun 2016 01:13:21 +0000 (01:13 +0000)
commit0bdb51b77650ec0bad702382883dcbd78e9e2455
tree39e5f56ee985a67135f491f8b0ae108a5d6204aa
parentc3e511efa3b89495cc2f863c30e72ec6b6b26c3e
Remove nonsense and simplify. To forward a reference, we always just load the
pointer-to-pointer representing the parameter. An aggregate rvalue representing
a pointer does not make sense.

We got away with this weirdness because CGCall happens to blindly load an
RValue in aggregate form in this case, without checking whether an RValue for
the type should be in scalar or aggregate form.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272609 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp