From: Chris Lattner Date: Thu, 27 Jan 2011 07:35:27 +0000 (+0000) Subject: Don't infinitely recurse! Patch by Marius Wachtler! X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b3371cdf5e6f8a9286a56fb94d70278be6f64276;p=oota-llvm.git 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 --- 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; }