From: Chandler Carruth Date: Sat, 2 Aug 2014 10:29:36 +0000 (+0000) Subject: [x86] Switch to using the variable we extracted this operand into. X-Git-Tag: android-x86-7.1-r4~58948 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=a66122515a5f23d623d99bdf23ea739b87977def;p=android-x86%2Fexternal-llvm.git [x86] Switch to using the variable we extracted this operand into. Spotted this missed refactoring by inspection when reading code, and it doesn't changethe functionality at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214627 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86MCInstLower.cpp b/lib/Target/X86/X86MCInstLower.cpp index a2bee7a3235..2471667d95b 100644 --- a/lib/Target/X86/X86MCInstLower.cpp +++ b/lib/Target/X86/X86MCInstLower.cpp @@ -999,7 +999,7 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) { ArrayRef Constants = MI->getParent()->getParent()->getConstantPool()->getConstants(); const MachineConstantPoolEntry &MaskConstantEntry = - Constants[MI->getOperand(5).getIndex()]; + Constants[MaskOp.getIndex()]; Type *MaskTy = MaskConstantEntry.getType(); (void)MaskTy; if (!MaskConstantEntry.isMachineConstantPoolEntry())