File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -168,9 +168,7 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUTargetInfo final : public TargetInfo {
168
168
return true ;
169
169
}
170
170
171
- bool HasLeftParen = false ;
172
- if (S.consume_front (" {" ))
173
- HasLeftParen = true ;
171
+ bool HasLeftParen = S.consume_front (" {" );
174
172
if (S.empty ())
175
173
return false ;
176
174
if (S.front () != ' v' && S.front () != ' s' && S.front () != ' a' ) {
@@ -196,9 +194,7 @@ class LLVM_LIBRARY_VISIBILITY AMDGPUTargetInfo final : public TargetInfo {
196
194
Name = S.data () - 1 ;
197
195
return true ;
198
196
}
199
- bool HasLeftBracket = false ;
200
- if (S.consume_front (" [" ))
201
- HasLeftBracket = true ;
197
+ bool HasLeftBracket = S.consume_front (" [" );
202
198
unsigned long long N;
203
199
if (S.empty () || consumeUnsignedInteger (S, 10 , N))
204
200
return false ;
You can’t perform that action at this time.
0 commit comments