summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAmy Huang <akhuang@google.com>2019-06-20 17:15:21 +0000
committerAmy Huang <akhuang@google.com>2019-06-20 17:15:21 +0000
commit7fac5c8d940c91e1e7b8b704186b4649170b029f (patch)
treebf0d0c3cbafe46a0b6ddfa6873fbc6349d275dcb /clang/lib/CodeGen/CodeGenFunction.h
parent01511192b23f531b8d378fa522d46647ce7b41a7 (diff)
downloadbcm5719-llvm-7fac5c8d940c91e1e7b8b704186b4649170b029f.tar.gz
bcm5719-llvm-7fac5c8d940c91e1e7b8b704186b4649170b029f.zip
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 llvm-svn: 363952
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index b274f45867a..e95a07ce0e4 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -327,6 +327,10 @@ public:
/// value. This is invalid iff the function has no return value.
Address ReturnValue = Address::invalid();
+ /// ReturnValuePointer - The temporary alloca to hold a pointer to sret.
+ /// This is invalid if sret is not in use.
+ Address ReturnValuePointer = Address::invalid();
+
/// Return true if a label was seen in the current scope.
bool hasLabelBeenSeenInCurrentScope() const {
if (CurLexicalScope)
OpenPOWER on IntegriCloud