]> granicus.if.org Git - clang/commitdiff
[MS ABI] Remove another call to RequireCompleteType
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 11 Sep 2015 00:53:15 +0000 (00:53 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 11 Sep 2015 00:53:15 +0000 (00:53 +0000)
I cannot come up with a testcase which would rely on this call to
RequireCompleteType, I believe that it is superfluous given the current
state of clang.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247367 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaCast.cpp

index 446c68055a65df3b8cb23ca38e2e1da51f90b159..fa414990892e63a48963f6880b2e0c44f2db5fab 100644 (file)
@@ -1496,10 +1496,6 @@ TryStaticImplicitCast(Sema &Self, ExprResult &SrcExpr, QualType DestType,
       msg = 0;
       return TC_Failed;
     }
-  } else if (DestType->isMemberPointerType()) {
-    if (Self.Context.getTargetInfo().getCXXABI().isMicrosoft()) {
-      Self.RequireCompleteType(OpRange.getBegin(), DestType, 0);
-    }
   }
 
   InitializedEntity Entity = InitializedEntity::InitializeTemporary(DestType);