R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable]
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Jan 2013 14:06:48 +0000 (14:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 21 Jan 2013 14:06:48 +0000 (14:06 +0000)
llvm-svn: 173040

llvm/lib/Target/R600/SILowerControlFlow.cpp

index 3780e40..1b0dbcc 100644 (file)
@@ -291,9 +291,8 @@ void SILowerControlFlowPass::Kill(MachineInstr &MI) {
   DebugLoc DL = MI.getDebugLoc();
 
   // Kill is only allowed in pixel shaders
-  MachineFunction &MF = *MBB.getParent();
-  SIMachineFunctionInfo *Info = MF.getInfo<SIMachineFunctionInfo>();
-  assert(Info->ShaderType == ShaderType::PIXEL);
+  assert(MBB.getParent()->getInfo<SIMachineFunctionInfo>()->ShaderType ==
+         ShaderType::PIXEL);
 
   // Clear this pixel from the exec mask if the operand is negative
   BuildMI(MBB, &MI, DL, TII->get(AMDGPU::V_CMPX_LE_F32_e32), AMDGPU::VCC)