diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-21 14:06:48 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-01-21 14:06:48 +0000 |
commit | 9262a64b307621a046ef5728d90bef4921b46108 (patch) | |
tree | bd1ddbc3b6e4808bb7669c9516f12243aedd6ada /lib | |
parent | a5157e68d183e1bdf010e94a15dc0c44b65f889b (diff) | |
download | external_llvm-9262a64b307621a046ef5728d90bef4921b46108.zip external_llvm-9262a64b307621a046ef5728d90bef4921b46108.tar.gz external_llvm-9262a64b307621a046ef5728d90bef4921b46108.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/R600/SILowerControlFlow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/R600/SILowerControlFlow.cpp b/lib/Target/R600/SILowerControlFlow.cpp index 3780e40..1b0dbcc 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<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) |