Skip to content

Commit 24e791b

Browse files
committed
[ARM] Use MCRegister instead of unsigned for RegisterReqs in ARMAsmParser.
1 parent d4c519e commit 24e791b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class ARMAsmParser : public MCTargetAsmParser {
247247
}
248248

249249
// Map of register aliases registers via the .req directive.
250-
StringMap<unsigned> RegisterReqs;
250+
StringMap<MCRegister> RegisterReqs;
251251

252252
bool NextSymbolIsThumb;
253253

@@ -4253,7 +4253,7 @@ int ARMAsmParser::tryParseRegister(bool AllowOutOfBoundReg) {
42534253
// Check for aliases registered via .req. Canonicalize to lower case.
42544254
// That's more consistent since register names are case insensitive, and
42554255
// it's how the original entry was passed in from MC/MCParser/AsmParser.
4256-
StringMap<unsigned>::const_iterator Entry = RegisterReqs.find(lowerCase);
4256+
auto Entry = RegisterReqs.find(lowerCase);
42574257
// If no match, return failure.
42584258
if (Entry == RegisterReqs.end())
42594259
return -1;

0 commit comments

Comments
 (0)