From 2ef10690045214f0d886f2b1498ddecdd72b6fc3 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 11 Sep 2019 07:38:21 +0000 Subject: [PATCH] [LTO] Avoid calling GlobalValue::getGUID (MD5) twice git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371593 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/LTO/LTO.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/LTO/LTO.cpp b/lib/LTO/LTO.cpp index d6e7950b078..4696265a232 100644 --- a/lib/LTO/LTO.cpp +++ b/lib/LTO/LTO.cpp @@ -907,8 +907,7 @@ Error LTO::run(AddStreamFn AddStream, NativeObjectCache Cache) { GlobalValue::dropLLVMManglingEscape(Res.second.IRName)); if (Res.second.VisibleOutsideSummary && Res.second.Prevailing) - GUIDPreservedSymbols.insert(GlobalValue::getGUID( - GlobalValue::dropLLVMManglingEscape(Res.second.IRName))); + GUIDPreservedSymbols.insert(GUID); GUIDPrevailingResolutions[GUID] = Res.second.Prevailing ? PrevailingType::Yes : PrevailingType::No; -- 2.50.1