Skip to content

Commit b219922

Browse files
committed
Update SemaExprCXX.cpp
1 parent c17d0ec commit b219922

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/Sema/SemaExprCXX.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -674,10 +674,11 @@ Sema::ActOnCXXTypeid(SourceLocation OpLoc, SourceLocation LParenLoc,
674674
return ExprError(Diag(OpLoc, diag::err_need_header_before_typeid));
675675
}
676676

677+
#ifndef _WIN32
677678
if (!getLangOpts().RTTI) {
678679
return ExprError(Diag(OpLoc, diag::err_no_typeid_with_fno_rtti));
679680
}
680-
681+
#endif
681682
QualType TypeInfoType = Context.getTypeDeclType(CXXTypeInfoDecl);
682683

683684
if (isType) {
@@ -8861,7 +8862,7 @@ ExprResult Sema::ActOnFinishFullExpr(Expr *FE, SourceLocation CC,
88618862
FullExpr = IgnoredValueConversions(FullExpr.get());
88628863
if (FullExpr.isInvalid())
88638864
return ExprError();
8864-
8865+
88658866
DiagnoseUnusedExprResult(FullExpr.get(), diag::warn_unused_expr);
88668867
}
88678868

0 commit comments

Comments
 (0)