Skip to content

Commit c272219

Browse files
Update clang/lib/Lex/LiteralSupport.cpp
Co-authored-by: OverMighty <[email protected]>
1 parent f6a05c3 commit c272219

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/lib/Lex/LiteralSupport.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -981,12 +981,10 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling,
981981
switch (*s) {
982982
case 'b': // FP Suffix for "__bf16"
983983
case 'B':
984-
if (!isFPConstant)
985-
break; // Error for integer constant.
986-
if (isBFloat16)
987-
break;
988984
if (!Target.hasBFloat16Type())
989985
break;
986+
if (!isFPConstant)
987+
break; // Error for integer constant.
990988
if (HasSize)
991989
break;
992990
HasSize = true;

0 commit comments

Comments
 (0)