Skip to content

Commit

Permalink
We need to copy over the unnamed_addr attribute.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128501 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
isanbard committed Mar 29, 2011
1 parent 55037de commit 75c7563
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Linker/LinkModules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@ static void CopyGVAttributes(GlobalValue *DestGV, const GlobalValue *SrcGV) {
unsigned Alignment = std::max(DestGV->getAlignment(), SrcGV->getAlignment());
DestGV->copyAttributesFrom(SrcGV);
DestGV->setAlignment(Alignment);
DestGV->setUnnamedAddr(SrcGV->hasUnnamedAddr());
}

/// GetLinkageResult - This analyzes the two global values and determines what
Expand Down

0 comments on commit 75c7563

Please sign in to comment.