Skip to content

Commit 9884e50

Browse files
authored
Merge pull request #28280 from drodriguez/msvc-wants-you-to-move
[msvc] std::move the pointer for the method that requires an rvalue.
2 parents 2fbb0c1 + 62c0bb8 commit 9884e50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ DefaultArgumentInitContextRequest::evaluate(Evaluator &eval,
20492049
if (param == otherParam)
20502050
result = initDC;
20512051
else
2052-
eval.cacheOutput(DefaultArgumentInitContextRequest{otherParam}, initDC);
2052+
eval.cacheOutput(DefaultArgumentInitContextRequest{otherParam}, std::move(initDC));
20532053
}
20542054
assert(result && "Didn't create init context?");
20552055
return result;

0 commit comments

Comments
 (0)