Skip to content

Commit b8c093c

Browse files
committed
Update SemaExpr.cpp
1 parent 5ac026f commit b8c093c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Sema/SemaExpr.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -16816,6 +16816,7 @@ ExprResult Sema::BuildBuiltinOffsetOf(SourceLocation BuiltinLoc,
1681616816
// C++11 [support.types]p4:
1681716817
// If type is not a standard-layout class (Clause 9), the results are
1681816818
// undefined.
16819+
#ifndef _WIN32
1681916820
if (CXXRecordDecl *CRD = dyn_cast<CXXRecordDecl>(RD)) {
1682016821
bool IsSafe = LangOpts.CPlusPlus11? CRD->isStandardLayout() : CRD->isPOD();
1682116822
unsigned DiagID =
@@ -16828,7 +16829,7 @@ ExprResult Sema::BuildBuiltinOffsetOf(SourceLocation BuiltinLoc,
1682816829
DidWarnAboutNonPOD = true;
1682916830
}
1683016831
}
16831-
16832+
#endif
1683216833
// Look for the field.
1683316834
LookupResult R(*this, OC.U.IdentInfo, OC.LocStart, LookupMemberName);
1683416835
LookupQualifiedName(R, RD);

0 commit comments

Comments
 (0)