summaryrefslogtreecommitdiff
path: root/source/compiler-core
diff options
context:
space:
mode:
Diffstat (limited to 'source/compiler-core')
-rw-r--r--source/compiler-core/slang-artifact-desc-util.cpp2
-rw-r--r--source/compiler-core/slang-source-embed-util.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/source/compiler-core/slang-artifact-desc-util.cpp b/source/compiler-core/slang-artifact-desc-util.cpp
index ae7f84227..57102182e 100644
--- a/source/compiler-core/slang-artifact-desc-util.cpp
+++ b/source/compiler-core/slang-artifact-desc-util.cpp
@@ -958,7 +958,7 @@ SlangResult ArtifactDescUtil::appendDefaultExtension(const ArtifactDesc& desc, S
{
StringBuilder buf;
appendText(desc, buf);
- return std::move(buf);
+ return buf;
}
} // namespace Slang
diff --git a/source/compiler-core/slang-source-embed-util.cpp b/source/compiler-core/slang-source-embed-util.cpp
index 45fd9c4b3..ec0c005cf 100644
--- a/source/compiler-core/slang-source-embed-util.cpp
+++ b/source/compiler-core/slang-source-embed-util.cpp
@@ -73,7 +73,7 @@ static bool _isHeaderExtension(const UnownedStringSlice& in)
// Assume it's a header, and just use the .h extension
StringBuilder buf;
buf << path << toSlice(".h");
- return std::move(buf);
+ return buf;
}
/* static */SourceEmbedUtil::Style SourceEmbedUtil::getDefaultStyle(const ArtifactDesc& desc)