summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExprCXX.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2008-10-31 16:23:19 +0000
committerDouglas Gregor <dgregor@apple.com>2008-10-31 16:23:19 +0000
commit26bee0b3262275f2fe680cb72e860682e32a0763 (patch)
tree05899d26f3b7772c5d9b65aba22c72cf22723d4f /clang/lib/Sema/SemaExprCXX.cpp
parent71d7e9b6672e90659b7b6c7efd011d03abc7c975 (diff)
downloadbcm5719-llvm-26bee0b3262275f2fe680cb72e860682e32a0763.tar.gz
bcm5719-llvm-26bee0b3262275f2fe680cb72e860682e32a0763.zip
Implement basic support for converting constructors in user-defined
conversions. Notes: - Overload resolution for converting constructors need to prohibit user-defined conversions (hence, the test isn't -verify safe yet). - We still use hacks for conversions from a class type to itself. This will be the case until we start implicitly declaring the appropriate special member functions. (That's next on my list) llvm-svn: 58513
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r--clang/lib/Sema/SemaExprCXX.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp
index 2c5c2647da6..c82820ca932 100644
--- a/clang/lib/Sema/SemaExprCXX.cpp
+++ b/clang/lib/Sema/SemaExprCXX.cpp
@@ -889,11 +889,11 @@ Sema::PerformImplicitConversion(Expr *&From, QualType ToType)
// the constructor or conversion operator, and then cope with the
// standard conversions.
ImpCastExprToType(From, ToType);
- break;
+ return false;
case ImplicitConversionSequence::EllipsisConversion:
assert(false && "Cannot perform an ellipsis conversion");
- break;
+ return false;
case ImplicitConversionSequence::BadConversion:
return true;
OpenPOWER on IntegriCloud