summaryrefslogtreecommitdiffstats
path: root/clang/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
commit3b227bd6294e00952131ab08d2812caa8f6cfb45 (patch)
treea9c19179b6ce04a95ebc063fc8353f31e1972c15 /clang/lib/CodeGen/CGCall.cpp
parent5bb4efdf3c83f3d60298ab6037606f4cb79a5d99 (diff)
downloadbcm5719-llvm-3b227bd6294e00952131ab08d2812caa8f6cfb45.tar.gz
bcm5719-llvm-3b227bd6294e00952131ab08d2812caa8f6cfb45.zip
Revert the new reference binding code; I came up with a way simpler solution for the reference binding bug that is preventing self-hosting.
llvm-svn: 95223
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index e1fe0d29a2d..ce361f08fef 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud