Skip to content

Commit 9e234c1

Browse files
committed
tweak the order of conditions
no functional changes are intended
1 parent fb9a6ab commit 9e234c1

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lld/wasm/Relocations.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,9 @@ void scanRelocations(InputChunk *chunk) {
144144
break;
145145
}
146146

147-
if (ctx.isPic ||
147+
if (ctx.isPic || sym->isShared() ||
148148
(sym->isUndefined() &&
149-
config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic) ||
150-
sym->isShared()) {
149+
config->unresolvedSymbols == UnresolvedPolicy::ImportDynamic)) {
151150
switch (reloc.Type) {
152151
case R_WASM_TABLE_INDEX_SLEB:
153152
case R_WASM_TABLE_INDEX_SLEB64:

0 commit comments

Comments
 (0)