summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-08-26 21:08:13 +0000
committerJohn McCall <rjmccall@apple.com>2011-08-26 21:08:13 +0000
commit17054bd6701ae94d0254968a14351a2090a31ba1 (patch)
tree22e74c47eebf73dbb15e1dd5916836d1fda06fba /clang/lib/CodeGen/CGExpr.cpp
parent3cc90fe5a5371cbb912f88c5f9e361504e35c59c (diff)
downloadbcm5719-llvm-17054bd6701ae94d0254968a14351a2090a31ba1.tar.gz
bcm5719-llvm-17054bd6701ae94d0254968a14351a2090a31ba1.zip
Slight optimization enabled by the previous assert:
emit all gl-value arguments as reference bindings. llvm-svn: 138655
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 59b8fefb495..d26d787da69 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2150,8 +2150,7 @@ LValue CodeGenFunction::EmitOpaqueValueLValue(const OpaqueValueExpr *e) {
LValue CodeGenFunction::EmitMaterializeTemporaryExpr(
const MaterializeTemporaryExpr *E) {
- RValue RV = EmitReferenceBindingToExpr(E->GetTemporaryExpr(),
- /*InitializedDecl=*/0);
+ RValue RV = EmitReferenceBindingToExpr(E, /*InitializedDecl=*/0);
return MakeAddrLValue(RV.getScalarVal(), E->getType());
}
OpenPOWER on IntegriCloud