summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorSebastian Redl <sebastian.redl@getdesigned.at>2009-04-19 21:53:20 +0000
committerSebastian Redl <sebastian.redl@getdesigned.at>2009-04-19 21:53:20 +0000
commit8ce189f9cefc4afba166c8868bbbfd336d103c28 (patch)
tree8824b609ce7405196f725c4f50b2b78c311c876a /clang/lib/Sema/SemaExprCXX.cpp
parent02ef4e3dba705b2a32add438154a9e240533af0c (diff)
downloadbcm5719-llvm-8ce189f9cefc4afba166c8868bbbfd336d103c28.tar.gz
bcm5719-llvm-8ce189f9cefc4afba166c8868bbbfd336d103c28.zip
Conditional operator C++ checking complete. What issues remain are in more general code.
llvm-svn: 69555
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 2497f509ae5..d3a46dc1acb 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -1151,6 +1151,8 @@ static bool ConvertForConditional(Sema &Self, Expr *&E,
ICS.Standard.ReferenceBinding) {
assert(ICS.Standard.DirectBinding &&
"TryClassUnification should never generate indirect ref bindings");
+ // FIXME: Should use CheckReferenceInit here, but we no longer have a
+ // reference type.
Self.ImpCastExprToType(E, TargetType(ICS), true);
return false;
}
OpenPOWER on IntegriCloud