diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-05-15 17:18:27 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-05-15 17:18:27 +0000 |
commit | de7e7b857c8c6f9dc7fecb18fcb947b003748d16 (patch) | |
tree | a2218c4bdd96b6a4474c99ec8a47f410da6c8273 /lib/Sema/SemaChecking.cpp | |
parent | be0ee875d8a91c031a085cbbd73ad9e8dc1aa8ff (diff) |
Changing std::string to SmallString for r156826.
Based on code review feedback by Jordan Rose.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@156827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index 9c637b89dd..1fc3c1aeff 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -4084,11 +4084,11 @@ void DiagnoseFloatingLiteralImpCast(Sema &S, FloatingLiteral *FL, QualType T, SmallString<16> PrettySourceValue; Value.toString(PrettySourceValue); - std::string PrettyTargetValue; + SmallString<16> PrettyTargetValue; if (T->isSpecificBuiltinType(BuiltinType::Bool)) PrettyTargetValue = IntegerValue == 0 ? "false" : "true"; else - PrettyTargetValue = IntegerValue.toString(10); + IntegerValue.toString(PrettyTargetValue); S.Diag(FL->getExprLoc(), diag::warn_impcast_literal_float_to_integer) << FL->getType() << T.getUnqualifiedType() << PrettySourceValue |