Skip to content

Commit e02a590

Browse files
committed
[CHERIoT] Minor change to fix warning in older clang versions
1 parent 592752f commit e02a590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/include/clang/AST/Stmt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,8 @@ class alignas(void *) Stmt {
639639
unsigned BasePathSize;
640640
};
641641

642-
static_assert(CK_IntToOCLSampler == (CastExprBitfields{.Kind = CK_IntToOCLSampler}).Kind,
642+
static_assert(CK_IntToOCLSampler ==
643+
(CastExprBitfields{CK_IntToOCLSampler, 0, 0, 0}).Kind,
643644
"Need more cast kind bits");
644645

645646
class BinaryOperatorBitfields {

0 commit comments

Comments
 (0)