From a66122515a5f23d623d99bdf23ea739b87977def Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Sat, 2 Aug 2014 10:29:36 +0000 Subject: [PATCH] [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 --- lib/Target/X86/X86MCInstLower.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) -- 2.11.0