diff options
author | Anders Carlsson <andersca@mac.com> | 2010-01-31 18:34:51 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-01-31 18:34:51 +0000 |
commit | 3aba09376c5f49c4c8d176109ea4835bc2c528ee (patch) | |
tree | 9327456a19ee39fa56e2de8df8f77f2313b6f8b7 /lib/CodeGen/CGCall.cpp | |
parent | 093802675b1548f2a5f44c29938d65cce00d58bb (diff) |
Start creating CXXBindReferenceExpr nodes when binding complex types to references.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@94964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r-- | lib/CodeGen/CGCall.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp index d3a41d62a7..e1fe0d29a2 100644 --- a/lib/CodeGen/CGCall.cpp +++ b/lib/CodeGen/CGCall.cpp @@ -802,6 +802,9 @@ void CodeGenFunction::EmitFunctionEpilog(const CGFunctionInfo &FI, } RValue CodeGenFunction::EmitCallArg(const Expr *E, QualType ArgType) { + if (const CXXBindReferenceExpr *BE = dyn_cast<CXXBindReferenceExpr>(E)) + return RValue::get(EmitCXXBindReferenceExpr(BE)); + if (ArgType->isReferenceType()) return EmitReferenceBindingToExpr(E, ArgType); |