Skip to content

Commit e887a13

Browse files
authored
Closes #42
1 parent 1464211 commit e887a13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/AST/ASTContext.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7172,7 +7172,11 @@ QualType ASTContext::isPromotableBitField(Expr *E) const {
71727172
// FIXME: C does not permit promotion of an enum bit-field whose rank is
71737173
// greater than that of 'int'. We perform that promotion to match GCC.
71747174
if (BitWidth < IntSize)
7175+
#ifdef _WIN32
7176+
return {};
7177+
#else
71757178
return IntTy;
7179+
#endif
71767180

71777181
if (BitWidth == IntSize)
71787182
return FT->isSignedIntegerType() ? IntTy : UnsignedIntTy;

0 commit comments

Comments
 (0)