]> granicus.if.org Git - clang/commitdiff
Revert "IR: Use pointers instead of GUIDs to represent edges in the module summary...
authorEric Liu <ioeric@google.com>
Thu, 4 May 2017 12:05:40 +0000 (12:05 +0000)
committerEric Liu <ioeric@google.com>
Thu, 4 May 2017 12:05:40 +0000 (12:05 +0000)
This reverts commit r302108.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302141 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/BackendUtil.cpp

index fb1f4fc48d8e31c5580f851e454d8851f7b016f6..03883805199f4208efa75677b3386c25ea125aa4 100644 (file)
@@ -975,9 +975,9 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M,
   FunctionImporter::ImportMapTy ImportList;
   for (auto &GlobalList : *CombinedIndex) {
     auto GUID = GlobalList.first;
-    assert(GlobalList.second.SummaryList.size() == 1 &&
+    assert(GlobalList.second.size() == 1 &&
            "Expected individual combined index to have one summary per GUID");
-    auto &Summary = GlobalList.second.SummaryList[0];
+    auto &Summary = GlobalList.second[0];
     // Skip the summaries for the importing module. These are included to
     // e.g. record required linkage changes.
     if (Summary->modulePath() == M->getModuleIdentifier())