OSDN Git Service

Fix build bots.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 5 Jan 2017 04:00:09 +0000 (04:00 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 5 Jan 2017 04:00:09 +0000 (04:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@291073 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/ModuleSummaryIndexYAML.h

index 8a71d25..67ee832 100644 (file)
@@ -80,7 +80,7 @@ template <> struct CustomMappingTraits<GlobalValueSummaryMapTy> {
     for (auto &FSum : FSums) {
       GlobalValueSummary::GVFlags GVFlags(GlobalValue::ExternalLinkage, false,
                                           false, false);
-      Elem.push_back(make_unique<FunctionSummary>(
+      Elem.push_back(llvm::make_unique<FunctionSummary>(
           GVFlags, 0, ArrayRef<ValueInfo>{},
           ArrayRef<FunctionSummary::EdgeTy>{}, std::move(FSum.TypeTests)));
     }
@@ -93,7 +93,7 @@ template <> struct CustomMappingTraits<GlobalValueSummaryMapTy> {
           FSums.push_back(FunctionSummaryYaml{FSum->type_tests()});
       }
       if (!FSums.empty())
-        io.mapRequired(std::to_string(P.first).c_str(), FSums);
+        io.mapRequired(llvm::utostr(P.first).c_str(), FSums);
     }
   }
 };