[AMDGPU] Fixed asan error after D61536

llvm-svn: 359963
This commit is contained in:
Stanislav Mekhanoshin 2019-05-04 06:40:20 +00:00
parent 5dbfa76334
commit 5ddd564e19
1 changed files with 1 additions and 1 deletions

View File

@ -858,7 +858,7 @@ bool GCNHazardRecognizer::fixSMEMtoVectorWriteHazards(MachineInstr *MI) {
const SIRegisterInfo *TRI = ST.getRegisterInfo();
const MachineOperand *SDST = TII->getNamedOperand(*MI, SDSTName);
if (!SDST) {
for (auto MO : MI->implicit_operands()) {
for (const auto &MO : MI->implicit_operands()) {
if (MO.isDef() && TRI->isSGPRClass(TRI->getPhysRegClass(MO.getReg()))) {
SDST = &MO;
break;