Use llvm::utostr_32 instead of ostringstream.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53914 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index edf9a66..04e3f05 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/lib/Sema/SemaDeclAttr.cpp
@@ -14,7 +14,7 @@
#include "Sema.h"
#include "clang/AST/ASTContext.h"
#include "clang/Basic/TargetInfo.h"
-#include <sstream>
+#include <llvm/ADT/StringExtras.h>
using namespace clang;
//===----------------------------------------------------------------------===//
@@ -267,10 +267,8 @@
unsigned x = (unsigned) ArgNum.getZExtValue();
if (x < 1 || x > NumArgs) {
- std::ostringstream os;
- os << I.getArgNum();
S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds,
- "nonnull", os.str(), Ex->getSourceRange());
+ "nonnull", llvm::utostr_32(I.getArgNum()), Ex->getSourceRange());
return;
}