[llvm] c343651 - [X86][NFC] Remove unused variable introduce by D121785

Shengchen Kan via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 24 03:48:20 PDT 2022


Author: Shengchen Kan
Date: 2022-03-24T18:48:10+08:00
New Revision: c34365149dc98382210353f76bd4e6f4b7668407

URL: https://github.com/llvm/llvm-project/commit/c34365149dc98382210353f76bd4e6f4b7668407
DIFF: https://github.com/llvm/llvm-project/commit/c34365149dc98382210353f76bd4e6f4b7668407.diff

LOG: [X86][NFC] Remove unused variable introduce by D121785

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 0693d807b94f7..cfa639ea86ec0 100644
--- a/llvm/lib/Target/X86/X86AsmPrinter.cpp
+++ b/llvm/lib/Target/X86/X86AsmPrinter.cpp
@@ -363,11 +363,9 @@ void X86AsmPrinter::PrintIntelMemReference(const MachineInstr *MI,
     HasBaseReg = false;
 
   // If we really just want to print out displacement.
-  bool HasIndexReg = IndexReg.getReg() != 0;
   if (Modifier && (DispSpec.isGlobal() || DispSpec.isSymbol()) &&
       !strcmp(Modifier, "disp-only")) {
     HasBaseReg = false;
-    HasIndexReg = false;
   }
 
   // If this has a segment register, print it.


        


More information about the llvm-commits mailing list