From 208b6f69441293d27b61b9d16a69c9bba4d097cb Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 23 Mar 2012 07:22:49 +0000 Subject: [PATCH] Ignore the last message. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153315 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkModules.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp index 02905bc3397..dca523c7ab1 100644 --- a/lib/Linker/LinkModules.cpp +++ b/lib/Linker/LinkModules.cpp @@ -1226,6 +1226,7 @@ bool ModuleLinker::run() { } linkFunctionBody(cast(ValueMap[SF]), SF); + SF->Dematerialize(); } // Resolve all uses of aliases with aliasees. @@ -1265,7 +1266,8 @@ bool ModuleLinker::run() { // Link in function body. linkFunctionBody(DF, SF); - + SF->Dematerialize(); + // "Remove" from vector by setting the element to 0. *I = 0;