diff options
Diffstat (limited to 'lib/Sema/SemaTemplate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplate.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplate.cpp b/lib/Sema/SemaTemplate.cpp index 14d04563d6..7e7413f296 100644 --- a/lib/Sema/SemaTemplate.cpp +++ b/lib/Sema/SemaTemplate.cpp @@ -2868,7 +2868,6 @@ 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())) { @@ -2933,7 +2932,6 @@ 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. |