From 2114b762def75baa1f501e4c6b29c8087209bdf5 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 27 Jan 2011 07:35:27 +0000 Subject: Don't infinitely recurse! Patch by Marius Wachtler! llvm-svn: 124366 --- llvm/unittests/ADT/StringRefTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/unittests/ADT/StringRefTest.cpp') diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp index 7e4d0dcd413..5731e4abaf1 100644 --- a/llvm/unittests/ADT/StringRefTest.cpp +++ b/llvm/unittests/ADT/StringRefTest.cpp @@ -16,7 +16,7 @@ using namespace llvm; namespace llvm { std::ostream &operator<<(std::ostream &OS, const StringRef &S) { - OS << S; + OS << S.str(); return OS; } -- cgit v1.2.3