[llvm-commits] Infinite recursion in StringRefTest
Marius Wachtler
undingen at gmail.com
Sun Jan 23 22:00:27 PST 2011
Hello
In the StringRef unittest is a std::ostream operator overload which
calls itself.
The function is not called in the tests hence it didn't show up.
Patch attached...
-- Marius Wachtler
Index: StringRefTest.cpp
===================================================================
--- StringRefTest.cpp (revision 124109)
+++ StringRefTest.cpp (working copy)
@@ -16,7 +16,7 @@
namespace llvm {
std::ostream &operator<<(std::ostream &OS, const StringRef &S) {
- OS << S;
+ OS << S.str();
return OS;
}
More information about the llvm-commits
mailing list