diff options
author | Fangrui Song <maskray@google.com> | 2018-08-28 19:19:03 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2018-08-28 19:19:03 +0000 |
commit | 9cca227d3e0f238b60f3d5edcc3f6dddd72fe8a4 (patch) | |
tree | 45c60664b35e77266b97242c13375a420c870ce9 /llvm/lib/Target/AMDGPU | |
parent | bab8556f01b36f519f3f7bd9f616cab17a5bf862 (diff) | |
download | bcm5719-llvm-9cca227d3e0f238b60f3d5edcc3f6dddd72fe8a4.tar.gz bcm5719-llvm-9cca227d3e0f238b60f3d5edcc3f6dddd72fe8a4.zip |
[AMDGPU] Fix -Wunused-variable when -DLLVM_ENABLE_ASSERTIONS=off
llvm-svn: 340868
Diffstat (limited to 'llvm/lib/Target/AMDGPU')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIFoldOperands.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp index 64654dee4e0..eed9a4d43f6 100644 --- a/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp +++ b/llvm/lib/Target/AMDGPU/SIFoldOperands.cpp @@ -355,8 +355,7 @@ static bool tryAddToFoldList(SmallVectorImpl<FoldCandidate> &FoldList, !TII->getRegisterInfo().isVGPR(MRI, OtherOp.getReg())) return false; - const MachineOperand &SDst = MI->getOperand(1); - assert(SDst.isDef()); + assert(MI->getOperand(1).isDef()); int Op32 = AMDGPU::getVOPe32(Opc); FoldList.push_back(FoldCandidate(MI, CommuteOpNo, OpToFold, true, |