diff options
-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, |