From b3371cdf5e6f8a9286a56fb94d70278be6f64276 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 27 Jan 2011 07:35:27 +0000 Subject: [PATCH] Don't infinitely recurse! Patch by Marius Wachtler! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124366 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/ADT/StringRefTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/ADT/StringRefTest.cpp b/unittests/ADT/StringRefTest.cpp index 7e4d0dcd413..5731e4abaf1 100644 --- a/unittests/ADT/StringRefTest.cpp +++ b/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; }