[llvm] r323365 - Simplify. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 24 11:11:24 PST 2018


Author: rafael
Date: Wed Jan 24 11:11:24 2018
New Revision: 323365

URL: http://llvm.org/viewvc/llvm-project?rev=323365&view=rev
Log:
Simplify. NFC.

Thanks to Teresa Johnson for the suggestion.

Modified:
    llvm/trunk/lib/LTO/LTO.cpp

Modified: llvm/trunk/lib/LTO/LTO.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/LTO/LTO.cpp?rev=323365&r1=323364&r2=323365&view=diff
==============================================================================
--- llvm/trunk/lib/LTO/LTO.cpp (original)
+++ llvm/trunk/lib/LTO/LTO.cpp Wed Jan 24 11:11:24 2018
@@ -641,7 +641,7 @@ LTO::addRegularLTO(BitcodeModule BM, Arr
 
       // Set the 'local' flag based on the linker resolution for this symbol.
       if (Res.FinalDefinitionInLinkageUnit)
-        GV->setDSOLocal(Res.FinalDefinitionInLinkageUnit);
+        GV->setDSOLocal(true);
     }
     // Common resolution: collect the maximum size/alignment over all commons.
     // We also record if we see an instance of a common as prevailing, so that




More information about the llvm-commits mailing list