We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678c546 commit d8ba8ecCopy full SHA for d8ba8ec
clang/lib/DPCT/AsmMigration.cpp
@@ -2416,7 +2416,7 @@ class SYCLGen : public SYCLGenBase {
2416
OS() << '(';
2417
llvm::SaveAndRestore<const InlineAsmInstruction *> Save(CurrInst);
2418
CurrInst = Inst;
2419
- for (auto [I, Op] : llvm::enumerate(Inst->input_operands())) {
+ for (const auto &[I, Op] : llvm::enumerate(Inst->input_operands())) {
2420
if (emitStmt(Op))
2421
return SYCLGenError();
2422
if (I != Inst->getNumInputOperands() - 1)
0 commit comments