]> granicus.if.org Git - llvm/commitdiff
[asan] Replace std::to_string with llvm::to_string
authorVitaly Buka <vitalybuka@google.com>
Wed, 19 Oct 2016 00:16:56 +0000 (00:16 +0000)
committerVitaly Buka <vitalybuka@google.com>
Wed, 19 Oct 2016 00:16:56 +0000 (00:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@284557 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/ASanStackFrameLayout.cpp

index 86d7ce87745cad1c159977901622cd58a1570037..df9d5da9e26e6037559ec179a3cb78d4ead9d0f7 100644 (file)
@@ -14,6 +14,7 @@
 #include "llvm/ADT/SmallString.h"
 #include "llvm/IR/DebugInfo.h"
 #include "llvm/Support/MathExtras.h"
+#include "llvm/Support/ScopedPrinter.h"
 #include "llvm/Support/raw_ostream.h"
 #include <algorithm>
 
@@ -101,7 +102,7 @@ SmallString<64> ComputeASanStackFrameDescription(
     std::string Name = Var.Name;
     if (Var.Line) {
       Name += ":";
-      Name += std::to_string(Var.Line);
+      Name += to_string(Var.Line);
     }
     StackDescription << " " << Var.Offset << " " << Var.Size << " "
                      << Name.size() << " " << Name;