diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-01-14 15:45:31 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-01-14 15:45:31 +0000 |
commit | 5fb53972380f55206bef1787b0b4107dcf99b957 (patch) | |
tree | 1c9d753abeb9662b5f5822a04359d8e5c1cb5322 /clang/lib/Sema/SemaInit.cpp | |
parent | 6108d25508b8adf81b79b614432620bcbecdc9ba (diff) | |
download | bcm5719-llvm-5fb53972380f55206bef1787b0b4107dcf99b957.tar.gz bcm5719-llvm-5fb53972380f55206bef1787b0b4107dcf99b957.zip |
Introduce support for C++0x explicit conversion operators (N2437)
Small cleanup in the handling of user-defined conversions.
Also, implement an optimization when constructing a call. We avoid
recomputing implicit conversion sequences and instead use those
conversion sequences that we computed as part of overload resolution.
llvm-svn: 62231
Diffstat (limited to 'clang/lib/Sema/SemaInit.cpp')
-rw-r--r-- | clang/lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaInit.cpp b/clang/lib/Sema/SemaInit.cpp index 031fe27ddf7..f9c91ecaab0 100644 --- a/clang/lib/Sema/SemaInit.cpp +++ b/clang/lib/Sema/SemaInit.cpp @@ -193,7 +193,7 @@ void InitListChecker::CheckScalarType(InitListExpr *IList, QualType &DeclType, return; } Expr *savExpr = expr; // Might be promoted by CheckSingleInitializer. - if (SemaRef->CheckSingleInitializer(expr, DeclType)) + if (SemaRef->CheckSingleInitializer(expr, DeclType, false)) hadError = true; // types weren't compatible. else if (savExpr != expr) // The type was promoted, update initializer list. |