diff options
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index a239a41e4e..7a3e83a497 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2868,6 +2868,7 @@ bool Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, if (IsQualificationConversion(ArgType, ParamType.getNonReferenceType())) { ImpCastExprToType(Arg, ParamType, CastExpr::CK_NoOp, + /*InheritancePath=*/0, Arg->isLvalue(Context) == Expr::LV_Valid); } else if (!Context.hasSameUnqualifiedType(ArgType, ParamType.getNonReferenceType())) { @@ -2932,6 +2933,7 @@ bool Sema::CheckTemplateArgument(NonTypeTemplateParmDecl *Param, // Types match exactly: nothing more to do here. } else if (IsQualificationConversion(ArgType, ParamType)) { ImpCastExprToType(Arg, ParamType, CastExpr::CK_NoOp, + /*InheritancePath=*/0, Arg->isLvalue(Context) == Expr::LV_Valid); } else { // We can't perform this conversion. |