aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/ADT/StringRefTest.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-27 07:35:27 +0000
committerChris Lattner <sabre@nondot.org>2011-01-27 07:35:27 +0000
commit2114b762def75baa1f501e4c6b29c8087209bdf5 (patch)
tree1f0fa078204528350fd867c6bad2731028f62b70 /llvm/unittests/ADT/StringRefTest.cpp
parent2d69fb41846219f4da3026b41ad125020c04fa38 (diff)
downloadllvm-2114b762def75baa1f501e4c6b29c8087209bdf5.zip
llvm-2114b762def75baa1f501e4c6b29c8087209bdf5.tar.gz
llvm-2114b762def75baa1f501e4c6b29c8087209bdf5.tar.bz2
Don't infinitely recurse! Patch by Marius Wachtler!
llvm-svn: 124366
Diffstat (limited to 'llvm/unittests/ADT/StringRefTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringRefTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/StringRefTest.cpp b/llvm/unittests/ADT/StringRefTest.cpp
index 7e4d0dc..5731e4a 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;
}