From: NAKAMURA Takumi Date: Mon, 21 Jan 2013 14:06:48 +0000 (+0000) Subject: R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable] X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9262a64b307621a046ef5728d90bef4921b46108;p=oota-llvm.git R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173040 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/R600/SILowerControlFlow.cpp b/lib/Target/R600/SILowerControlFlow.cpp index 3780e4051af..1b0dbcc45fb 100644 --- a/lib/Target/R600/SILowerControlFlow.cpp +++ b/lib/Target/R600/SILowerControlFlow.cpp @@ -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(); - assert(Info->ShaderType == ShaderType::PIXEL); + assert(MBB.getParent()->getInfo()->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)