]> granicus.if.org Git - clang/commit
Store a pointer to the return value in a static alloca and let the debugger use that
authorAmy Huang <akhuang@google.com>
Thu, 20 Jun 2019 17:15:21 +0000 (17:15 +0000)
committerAmy Huang <akhuang@google.com>
Thu, 20 Jun 2019 17:15:21 +0000 (17:15 +0000)
commit4730a1bd73f78e598c042c070e928d443108a988
tree8af98383b537cd0b88c50bbdbf989526da8a0561
parent1e4dbd072b1775348fe61267b99461b8c332f032
Store a pointer to the return value in a static alloca and let the debugger use that
as the variable address for NRVO variables.

Subscribers: hiraditya, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D63361

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@363952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
lib/CodeGen/CGDecl.cpp
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/arm64-microsoft-arguments.cpp
test/CodeGenCXX/conditional-gnu-ext.cpp
test/CodeGenCXX/debug-info-nrvo.cpp [new file with mode: 0644]
test/CodeGenCXX/lambda-expressions.cpp
test/CodeGenObjC/objc-non-trivial-struct-nrvo.m