llvm.org GIT mirror llvm / 229e72a
[AMDGPU] Fixed asan error after D61536 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359963 91177308-0d34-0410-b5e6-96231b3b80d8 Stanislav Mekhanoshin 1 year, 5 months ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
857857 const SIRegisterInfo *TRI = ST.getRegisterInfo();
858858 const MachineOperand *SDST = TII->getNamedOperand(*MI, SDSTName);
859859 if (!SDST) {
860 for (auto MO : MI->implicit_operands()) {
860 for (const auto &MO : MI->implicit_operands()) {
861861 if (MO.isDef() && TRI->isSGPRClass(TRI->getPhysRegClass(MO.getReg()))) {
862862 SDST = &MO;
863863 break;