summaryrefslogtreecommitdiff
path: root/COFF/Driver.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-08-18 08:27:24 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-08-18 08:27:24 +0000
commitfb11553f98d4c2e5baecfdb11d224fb31ef4ac0d (patch)
tree38099d0ba9e9e824497f784b61572f4f963275c2 /COFF/Driver.cpp
parent786d82c29598fe10a2b4888d1d1f426063c8bf7c (diff)
Vendor import of lld release_70 branch r339999:vendor/lld/lld-release_70-r339999
Notes
svn path=/vendor/lld/dist-release_70/; revision=338007 svn path=/vendor/lld/lld-release_70-r339999/; revision=338008; tag=vendor/lld/lld-release_70-r339999
Diffstat (limited to 'COFF/Driver.cpp')
-rw-r--r--COFF/Driver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/COFF/Driver.cpp b/COFF/Driver.cpp
index eefdb48beadd..da7527607ffb 100644
--- a/COFF/Driver.cpp
+++ b/COFF/Driver.cpp
@@ -1551,11 +1551,11 @@ void LinkerDriver::link(ArrayRef<const char *> ArgsArr) {
continue;
}
+ // If the symbol isn't common, it must have been replaced with a regular
+ // symbol, which will carry its own alignment.
auto *DC = dyn_cast<DefinedCommon>(Sym);
- if (!DC) {
- warn("/aligncomm symbol " + Name + " of wrong kind");
+ if (!DC)
continue;
- }
CommonChunk *C = DC->getChunk();
C->Alignment = std::max(C->Alignment, Alignment);