Skip to content

Commit 6c8ba82

Browse files
committed
Remove unnecessary bool
Created using spr 1.3.6-beta.1
1 parent 91218b4 commit 6c8ba82

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AArch64/MCTargetDesc/AArch64ELFObjectWriter.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,15 +228,16 @@ unsigned AArch64ELFObjectWriter::getRelocType(MCContext &Ctx,
228228
? ELF::R_AARCH64_GOTPCREL32
229229
: R_CLS(ABS32);
230230
case FK_Data_8: {
231-
bool IsAuth = (RefKind == AArch64MCExpr::VK_AUTH ||
232-
RefKind == AArch64MCExpr::VK_AUTHADDR);
233231
if (IsILP32) {
234232
Ctx.reportError(
235233
Fixup.getLoc(),
236234
"8 byte absolute data relocation is not supported in ILP32");
237235
return ELF::R_AARCH64_NONE;
238236
}
239-
return (IsAuth ? ELF::R_AARCH64_AUTH_ABS64 : ELF::R_AARCH64_ABS64);
237+
if (RefKind == AArch64MCExpr::VK_AUTH ||
238+
RefKind == AArch64MCExpr::VK_AUTHADDR)
239+
return ELF::R_AARCH64_AUTH_ABS64;
240+
return ELF::R_AARCH64_ABS64;
240241
}
241242
case AArch64::fixup_aarch64_add_imm12:
242243
if (RefKind == AArch64MCExpr::VK_DTPREL_HI12)

0 commit comments

Comments
 (0)