diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-24 16:57:13 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-24 16:57:13 +0000 |
commit | f1b48b7014992155286d58bb1676f9f51031d18b (patch) | |
tree | 8bbd12ee8c2c73a29c2c08c91dfc7d5448a959cb /lib/Sema/SemaTemplate.cpp | |
parent | c70e93c8b1e9dc566bb9a31951c21de7a166d4ac (diff) |
CastExpr should not hold a pointer to the base path. More cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102249 91177308-0d34-0410-b5e6-96231b3b80d8
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. |