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 | 09f41cf63f4df0bf4e98ee473e44e9a95b68f0ff (patch) | |
tree | f1ffb0328649ff895b883f38966dee5e95262a89 /lib/Sema/SemaInit.cpp | |
parent | be63802d1efe52697f49aafea49a5028b30b0aff (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 031fe27ddf..f9c91ecaab 100644 --- a/lib/Sema/SemaInit.cpp +++ b/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. |