diff options
author | Anders Carlsson <andersca@mac.com> | 2009-08-27 17:30:43 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-08-27 17:30:43 +0000 |
commit | 2de3aced4c4373d8a078604c8e61e267a323853a (patch) | |
tree | c7cbaefb9f90dccce48e7789569c560dbda2f1e6 /lib/Sema/SemaInit.cpp | |
parent | da7a18be8f139e1176e457d81c275c0e7ae0ced7 (diff) |
Remove more default arguments.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80260 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index fb00008983..f545db83f6 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -132,7 +132,10 @@ bool Sema::CheckInitializerTypes(Expr *&Init, QualType &DeclType, // (8.3.2), shall be initialized by an object, or function, of // type T or by an object that can be converted into a T. if (DeclType->isReferenceType()) - return CheckReferenceInit(Init, DeclType, 0, false, DirectInit); + return CheckReferenceInit(Init, DeclType, + /*SuppressUserConversions=*/false, + /*AllowExplicit=*/DirectInit, + /*ForceRValue=*/false); // C99 6.7.8p3: The type of the entity to be initialized shall be an array // of unknown size ("[]") or an object type that is not a variable array type. @@ -777,7 +780,10 @@ void InitListChecker::CheckReferenceType(InitListExpr *IList, QualType DeclType, } Expr *savExpr = expr; // Might be promoted by CheckSingleInitializer. - if (SemaRef.CheckReferenceInit(expr, DeclType)) + if (SemaRef.CheckReferenceInit(expr, DeclType, + /*SuppressUserConversions=*/false, + /*AllowExplicit=*/false, + /*ForceRValue=*/false)) hadError = true; else if (savExpr != expr) { // The type was promoted, update initializer list. |