aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/R600/SILowerControlFlow.cpp
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-21 14:06:48 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-21 14:06:48 +0000
commitc96fb1bd361c05ccfcfbe436f7b7af4615fbbf56 (patch)
tree04cc829def09429ac82071312bcbd4e0fb724d44 /llvm/lib/Target/R600/SILowerControlFlow.cpp
parentcdee74db63260b89a73fbdf0b726511e286af58f (diff)
downloadllvm-c96fb1bd361c05ccfcfbe436f7b7af4615fbbf56.zip
llvm-c96fb1bd361c05ccfcfbe436f7b7af4615fbbf56.tar.gz
llvm-c96fb1bd361c05ccfcfbe436f7b7af4615fbbf56.tar.bz2
R600/SILowerControlFlow.cpp: Fix a warning. [-Wunused-variable]
llvm-svn: 173040
Diffstat (limited to 'llvm/lib/Target/R600/SILowerControlFlow.cpp')
-rw-r--r--llvm/lib/Target/R600/SILowerControlFlow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/R600/SILowerControlFlow.cpp b/llvm/lib/Target/R600/SILowerControlFlow.cpp
index 3780e40..1b0dbcc 100644
--- a/llvm/lib/Target/R600/SILowerControlFlow.cpp
+++ b/llvm/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<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)