]> granicus.if.org Git - clang/commit
[CodeGen] Don't emit lifetime.end without lifetime.start
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 6 Mar 2018 23:07:00 +0000 (23:07 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Tue, 6 Mar 2018 23:07:00 +0000 (23:07 +0000)
commitd5efcc98f8c0f78681b1e22f06d4282a2e63f35f
tree7bd14d66f756396960736c366cba7620ac25f7c5
parentb67f62b3d506113c2e3da1af67bd0c60497fc97e
[CodeGen] Don't emit lifetime.end without lifetime.start

EmitLifetimeStart returns a non-null `size` pointer if it actually
emits a lifetime.start. Later in this function, we use `tempSize`'s
nullness to determine whether or not we should emit a lifetime.end.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326844 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGCall.cpp
test/CodeGen/64bit-swiftcall.c