[llvm] r305786 - [GlobalISel][X86] fix compilation error ( -Werror=unused-function )
Igor Breger via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 20 02:40:57 PDT 2017
Author: ibreger
Date: Tue Jun 20 04:40:57 2017
New Revision: 305786
URL: http://llvm.org/viewvc/llvm-project?rev=305786&view=rev
Log:
[GlobalISel][X86] fix compilation error ( -Werror=unused-function )
Modified:
llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp
Modified: llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp?rev=305786&r1=305785&r2=305786&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstructionSelector.cpp Tue Jun 20 04:40:57 2017
@@ -567,8 +567,8 @@ bool X86InstructionSelector::selectZext(
else
return false;
- const RegisterBank &RegBank = *RBI.getRegBank(DstReg, MRI, TRI);
- unsigned DefReg = MRI.createVirtualRegister(getRegClass(DstTy, RegBank));
+ unsigned DefReg =
+ MRI.createVirtualRegister(getRegClass(DstTy, DstReg, MRI));
BuildMI(*I.getParent(), I, I.getDebugLoc(),
TII.get(TargetOpcode::SUBREG_TO_REG), DefReg)
More information about the llvm-commits
mailing list