Index: src/compiler/graph-unittest.cc |
diff --git a/src/compiler/graph-unittest.cc b/src/compiler/graph-unittest.cc |
index 35585e8503968dd60a3c12f27b7586f0dbb1d4aa..7fa97f18e450fa27257adc423733dccc5af20416 100644 |
--- a/src/compiler/graph-unittest.cc |
+++ b/src/compiler/graph-unittest.cc |
@@ -24,9 +24,8 @@ inline std::ostream& operator<<(std::ostream& os, const Unique<T>& value) { |
} |
inline std::ostream& operator<<(std::ostream& os, |
const ExternalReference& value) { |
- OStringStream ost; |
- compiler::StaticParameterTraits<ExternalReference>::PrintTo(ost, value); |
- return os << ost.c_str(); |
+ compiler::StaticParameterTraits<ExternalReference>::PrintTo(os, value); |
+ return os; |
} |
namespace compiler { |