Skip to content

Commit 578bd15

Browse files
d0kAlexisPerry
authored andcommitted
[AArch64] Fix unused variable in release builds. NFC.
1 parent f456f8b commit 578bd15

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9555,8 +9555,7 @@ SDValue AArch64TargetLowering::LowerPtrAuthGlobalAddressStatically(
95559555
SDValue TGA, SDLoc DL, EVT VT, AArch64PACKey::ID KeyC,
95569556
SDValue Discriminator, SDValue AddrDiscriminator, SelectionDAG &DAG) const {
95579557
const auto *TGN = cast<GlobalAddressSDNode>(TGA.getNode());
9558-
const GlobalValue *GV = TGN->getGlobal();
9559-
assert(GV->hasExternalWeakLinkage());
9558+
assert(TGN->getGlobal()->hasExternalWeakLinkage());
95609559

95619560
// Offsets and extern_weak don't mix well: ptrauth aside, you'd get the
95629561
// offset alone as a pointer if the symbol wasn't available, which would

0 commit comments

Comments
 (0)