Remove many superfluous SmallString::str() calls.
[oota-llvm.git] / lib / Support / APInt.cpp
index 4a2a620eab4dd878c9983c28ad79c38b9afadf5d..dc8a6525c8bac0e4396c2f12ee4ed2105e88d0b0 100644 (file)
@@ -2297,7 +2297,7 @@ void APInt::dump() const {
 void APInt::print(raw_ostream &OS, bool isSigned) const {
   SmallString<40> S;
   this->toString(S, 10, isSigned, /* formatAsCLiteral = */false);
-  OS << S.str();
+  OS << S;
 }
 
 // This implements a variety of operations on a representation of