@@ -1635,7 +1635,7 @@ Converter::CallInfo Converter::CollectCallInfo(clang::CallExpr *expr) {
16351635 : proto->getParamType (i),
16361636 .expr = arg,
16371637 .has_default = function && function->getParamDecl (i)->hasDefaultArg (),
1638- .kind = Kind::Hoisted,
1638+ .kind = IsLiteral (arg) ? Kind::Inline : Kind::Hoisted,
16391639 };
16401640 bool is_materialize = clang::isa<clang::MaterializeTemporaryExpr>(arg);
16411641 if (is_materialize && ca.param_type ->isLValueReferenceType ()) {
@@ -2373,7 +2373,6 @@ bool Converter::ConvertIncAndDec(clang::UnaryOperator *expr) {
23732373 default :
23742374 return false ;
23752375 }
2376- std::unreachable ();
23772376}
23782377
23792378bool Converter::VisitUnaryOperator (clang::UnaryOperator *expr) {
@@ -2840,7 +2839,7 @@ bool Converter::VisitInitListExpr(clang::InitListExpr *expr) {
28402839 if (auto arr_ty = ctx_.getAsConstantArrayType (expr->getType ())) {
28412840 assert (
28422841 (arr_ty->getSize ().getZExtValue () - expr->getNumInits ()) &&
2843- " Number of initializers should be less that total size of array" );
2842+ " Number of initializers should be less than total size of array" );
28442843 for (unsigned i = 0 ;
28452844 i < arr_ty->getSize ().getZExtValue () - expr->getNumInits (); ++i) {
28462845 ConvertVarInit (expr->getArrayFiller ()->getType (),
@@ -3028,7 +3027,7 @@ bool Converter::VisitCXXConstructExpr(clang::CXXConstructExpr *expr) {
30283027 if (ctor->isCopyOrMoveConstructor () ||
30293028 (ctor->isConvertingConstructor (false ) && ctor->getNumParams () == 1 &&
30303029 ctor->getParamDecl (0 )->getType ()->isRValueReferenceType ())) {
3031- // Take supress before recursing into the child.
3030+ // Take suppress before recursing into the child.
30323031 bool suppress = PushSuppressIteratorClone::take (*this );
30333032 Convert (expr->getArg (0 ));
30343033 if (ctor->isCopyConstructor () && !suppress) {
0 commit comments