Remove std::move on return when it could prevent copy elision.
[oota-llvm.git] / utils / yaml-bench / YAMLBench.cpp
index 872f586ef7e1896235d21bab3603ec2b17d346ec..0fb31387fc2e7a01b9d2262ef8f77de8050f0667 100644 (file)
@@ -69,7 +69,7 @@ static std::string prettyTag(yaml::Node *N) {
   if (StringRef(Tag).startswith("tag:yaml.org,2002:")) {
     std::string Ret = "!!";
     Ret += StringRef(Tag).substr(18);
-    return std::move(Ret);
+    return Ret;
   }
   std::string Ret = "!<";
   Ret += Tag;