r247472 - Simplify logic introduced in r247464.

David Majnemer via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 11 13:55:29 PDT 2015


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;




More information about the cfe-commits mailing list