[llvm] 0dbe250 - [X86] Use Register instead of unsigned. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 7 02:38:26 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-07T10:38:08+01:00
New Revision: 0dbe2504af81fc8ac7438d490b98370740442805
URL: https://github.com/llvm/llvm-project/commit/0dbe2504af81fc8ac7438d490b98370740442805
DIFF: https://github.com/llvm/llvm-project/commit/0dbe2504af81fc8ac7438d490b98370740442805.diff
LOG: [X86] Use Register instead of unsigned. NFCI.
Fixes llvm-prefer-register-over-unsigned clang-tidy warning.
Added:
Modified:
llvm/lib/Target/X86/X86AsmPrinter.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86AsmPrinter.cpp b/llvm/lib/Target/X86/X86AsmPrinter.cpp
index aa03217d155d..75b2368ce185 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -448,7 +448,7 @@ static bool printAsmMRegister(X86AsmPrinter &P, const MachineOperand &MO,
static bool printAsmVRegister(X86AsmPrinter &P, const MachineOperand &MO,
char Mode, raw_ostream &O) {
- unsigned Reg = MO.getReg();
+ Register Reg = MO.getReg();
bool EmitPercent = MO.getParent()->getInlineAsmDialect() == InlineAsm::AD_ATT;
unsigned Index;
More information about the llvm-commits
mailing list