aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaInit.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-01-14 15:45:31 +0000
committerDouglas Gregor <dgregor@apple.com>2009-01-14 15:45:31 +0000
commit09f41cf63f4df0bf4e98ee473e44e9a95b68f0ff (patch)
treef1ffb0328649ff895b883f38966dee5e95262a89 /lib/Sema/SemaInit.cpp
parentbe63802d1efe52697f49aafea49a5028b30b0aff (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.cpp2
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.