aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-02-03 16:38:03 +0000
committerAnders Carlsson <andersca@mac.com>2010-02-03 16:38:03 +0000
commita64a869312066ff6119d1d7ae03f88ce499e3f82 (patch)
tree5ff2531884f675da36cc3d8f41779a9d36cee6ba /lib/CodeGen/CGCall.cpp
parentef6e0f3218b64d8ea3b8b57ee657fec8da228a43 (diff)
Revert the new reference binding code; I came up with a way simpler solution for the reference binding bug that is preventing self-hosting.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95223 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCall.cpp')
-rw-r--r--lib/CodeGen/CGCall.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/CodeGen/CGCall.cpp b/lib/CodeGen/CGCall.cpp
index e1fe0d29a2..ce361f08fe 100644
--- a/lib/CodeGen/CGCall.cpp
+++ b/lib/CodeGen/CGCall.cpp
@@ -802,11 +802,8 @@ 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);
+ return EmitReferenceBindingToExpr(E);
return EmitAnyExprToTemp(E);
}