Author: majnemer Date: Fri Sep 11 15:55:29 2015 New Revision: 247472 URL: http://llvm.org/viewvc/llvm-project?rev=247472&view=rev Log: Simplify logic introduced in r247464.
Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp Modified: cfe/trunk/lib/Sema/SemaTemplate.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaTemplate.cpp?rev=247472&r1=247471&r2=247472&view=diff ============================================================================== --- cfe/trunk/lib/Sema/SemaTemplate.cpp (original) +++ cfe/trunk/lib/Sema/SemaTemplate.cpp Fri Sep 11 15:55:29 2015 @@ -4223,9 +4223,9 @@ isNullPointerValueTemplateArgument(Sema 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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits