Skip to content

Commit b5a1747

Browse files
authored
[SPIRV] Move instead of copy. (#156637)
1 parent 0a9b54b commit b5a1747

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ getSymbolicOperandRequirements(SPIRV::OperandCategory::OperandCategory Category,
124124
})) {
125125
return {true,
126126
{},
127-
ReqExts,
127+
std::move(ReqExts),
128128
VersionTuple(),
129129
VersionTuple()}; // TODO: add versions to extensions.
130130
}

llvm/lib/Target/SPIRV/SPIRVStructurizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ using Edge = std::pair<BasicBlock *, BasicBlock *>;
4343
static void partialOrderVisit(BasicBlock &Start,
4444
std::function<bool(BasicBlock *)> Op) {
4545
PartialOrderingVisitor V(*Start.getParent());
46-
V.partialOrderVisit(Start, Op);
46+
V.partialOrderVisit(Start, std::move(Op));
4747
}
4848

4949
// Returns the exact convergence region in the tree defined by `Node` for which

0 commit comments

Comments
 (0)