[cfe-commits] r53914 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Ted Kremenek
kremenek at apple.com
Tue Jul 22 09:56:21 PDT 2008
Author: kremenek
Date: Tue Jul 22 11:56:21 2008
New Revision: 53914
URL: http://llvm.org/viewvc/llvm-project?rev=53914&view=rev
Log:
Use llvm::utostr_32 instead of ostringstream.
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=53914&r1=53913&r2=53914&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Tue Jul 22 11:56:21 2008
@@ -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;
}
More information about the cfe-commits
mailing list