Simplify logic introduced in r247464.

llvm-svn: 247472
This commit is contained in:
David Majnemer 2015-09-11 20:55:29 +00:00
parent 63cee81c3c
commit b54368c1b8
1 changed files with 3 additions and 3 deletions

View File

@ -4223,9 +4223,9 @@ isNullPointerValueTemplateArgument(Sema &S, NonTypeTemplateParmDecl *Param,
if (Arg->isValueDependent() || Arg->isTypeDependent())
return NPV_NotNullPointer;
if (ParamType->isMemberPointerType())
if (S.Context.getTargetInfo().getCXXABI().isMicrosoft())
S.RequireCompleteType(Arg->getExprLoc(), ParamType, 0);
if (S.RequireCompleteType(Arg->getExprLoc(), ParamType, 0))
llvm_unreachable(
"Incomplete parameter type in isNullPointerValueTemplateArgument!");
if (!S.getLangOpts().CPlusPlus11)
return NPV_NotNullPointer;