[llvm] r359963 - [AMDGPU] Fixed asan error after D61536
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 23:40:20 PDT 2019
Author: rampitec
Date: Fri May 3 23:40:20 2019
New Revision: 359963
URL: http://llvm.org/viewvc/llvm-project?rev=359963&view=rev
Log:
[AMDGPU] Fixed asan error after D61536
Modified:
llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp?rev=359963&r1=359962&r2=359963&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/GCNHazardRecognizer.cpp Fri May 3 23:40:20 2019
@@ -858,7 +858,7 @@ bool GCNHazardRecognizer::fixSMEMtoVecto
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;
More information about the llvm-commits
mailing list