aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-24 19:11:24 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-24 19:11:24 +0000
commit349fe0aa87a4b4705101943aba743438efa94ec7 (patch)
tree5c745407310d2d20c1176b5b7686077c096af10b /llvm/lib/LTO/LTO.cpp
parent21f17d4098a751b99fe41d8575a10d19dfcf4da6 (diff)
downloadllvm-349fe0aa87a4b4705101943aba743438efa94ec7.zip
llvm-349fe0aa87a4b4705101943aba743438efa94ec7.tar.gz
llvm-349fe0aa87a4b4705101943aba743438efa94ec7.tar.bz2
Simplify. NFC.
Thanks to Teresa Johnson for the suggestion. llvm-svn: 323365
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index 69d46a5..ccbd065 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -641,7 +641,7 @@ LTO::addRegularLTO(BitcodeModule BM, ArrayRef<InputFile::Symbol> Syms,
// 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