Skip to content

Commit 16cbb2f

Browse files
committed
Update SemaExpr.cpp
1 parent b219922 commit 16cbb2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8564,10 +8564,10 @@ Sema::ActOnCastExpr(Scope *S, SourceLocation LParenLoc,
85648564
if (Result.isInvalid()) return ExprError();
85658565
CastExpr = Result.get();
85668566
}
8567-
8567+
#ifndef _WIN32
85688568
if (getLangOpts().CPlusPlus && !castType->isVoidType())
85698569
Diag(LParenLoc, diag::warn_old_style_cast) << CastExpr->getSourceRange();
8570-
8570+
#endif
85718571
CheckTollFreeBridgeCast(castType, CastExpr);
85728572

85738573
CheckObjCBridgeRelatedCast(castType, CastExpr);

0 commit comments

Comments
 (0)