Skip to content

Commit 5e85570

Browse files
[AMDGPU] Resolving comments 3
1 parent 23e5c38 commit 5e85570

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/Target/AMDGPU/Utils/AMDGPUAsmUtils.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ static StringRef getNameFromOperandTable(const CustomOperand (&Table)[N],
3333
});
3434

3535
// Search through entries with the same encoding to find the first valid one
36-
for (auto It = First; It != Table + N && It->Encoding == Encoding; ++It)
36+
for (auto It = First; It != Table + N && It->Encoding == Encoding; ++It) {
3737
if (It->Encoding == Encoding && (!It->Cond || It->Cond(STI)))
3838
return It->Name;
39+
}
3940

4041
return "";
4142
}

0 commit comments

Comments
 (0)