Pass StringRef by value.
[oota-llvm.git] / include / llvm / Support / raw_ostream.h
index 66d6aaa1dff21971cc584ee71ee958863c0bcd83..a78e81fe955ffe92e7bf0017c595cf36278dfcbb 100644 (file)
@@ -169,7 +169,7 @@ public:
     return *this;
   }
 
-  raw_ostream &operator<<(const StringRef &Str) {
+  raw_ostream &operator<<(StringRef Str) {
     // Inline fast path, particularly for strings with a known length.
     size_t Size = Str.size();