From 9262a64b307621a046ef5728d90bef4921b46108 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 21 Jan 2013 14:06:48 +0000 Subject: [PATCH] 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 --- lib/Target/R600/SILowerControlFlow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) -- 2.34.1