Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 6d923ad

Browse files
author
Mingzhe Li
committed
Fix compilation issue: moving a local object in a return statement prevents copy elision
1 parent 4ad6e88 commit 6d923ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_harness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ struct TestHarness {
393393
test->Check();
394394
}
395395

396-
return std::move(test);
396+
return test;
397397
}
398398

399399
static void RunGradient(Workspace& w, const OperatorDef& def) {

0 commit comments

Comments
 (0)