File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,9 @@ bool RootSignatureLexer::LexNumber(RootSignatureToken &Result) {
34
34
if (Literal.hadError )
35
35
return true ; // Error has already been reported so just return
36
36
37
- if (!Literal.isIntegerLiteral ()) {
38
- // Note: if IsNumberChar allows for hexidecimal we will need to turn this
39
- // into a diagnostics for potential fixed-point literals
40
- llvm_unreachable (" IsNumberChar will only support digits" );
41
- return true ;
42
- }
37
+ // Note: if IsNumberChar allows for hexidecimal we will need to turn this
38
+ // into a diagnostics for potential fixed-point literals
39
+ assert (Literal.isIntegerLiteral () && " IsNumberChar will only support digits" );
43
40
44
41
// Retrieve the number value to store into the token
45
42
Result.Kind = TokenKind::int_literal;
@@ -142,7 +139,6 @@ bool RootSignatureLexer::LexToken(RootSignatureToken &Result) {
142
139
break ;
143
140
default :
144
141
llvm_unreachable (" Switch for an expected token was not provided" );
145
- return true ;
146
142
}
147
143
return false ;
148
144
}
You can’t perform that action at this time.
0 commit comments