Skip to content

Commit

Permalink
[AMDGPU] Fixed asan error after D61536
Browse files Browse the repository at this point in the history
llvm-svn: 359963
  • Loading branch information
rampitec committed May 4, 2019
1 parent 5dbfa76 commit 5ddd564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 5ddd564

Please sign in to comment.