Skip to content

Commit 4b1b629

Browse files
[BOLT] Fix a warning
This patch fixes: bolt/lib/Target/AArch64/AArch64MCSymbolizer.cpp:128:20: error: unused variable 'SymbolPageAddr' [-Werror,-Wunused-variable]
1 parent bac2171 commit 4b1b629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/lib/Target/AArch64/AArch64MCSymbolizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ AArch64MCSymbolizer::adjustRelocation(const Relocation &Rel,
125125
// instruction pairs and will perform necessary adjustments.
126126
ErrorOr<uint64_t> SymbolValue = BC.getSymbolValue(*Rel.Symbol);
127127
assert(SymbolValue && "Symbol value should be set");
128-
const uint64_t SymbolPageAddr = *SymbolValue & ~0xfffULL;
128+
(void)SymbolValue;
129129

130130
AdjustedRel.Symbol = BC.registerNameAtAddress("__BOLT_got_zero", 0, 0, 0);
131131
AdjustedRel.Addend = Rel.Value;

0 commit comments

Comments
 (0)