Skip to content

Commit 36e62b1

Browse files
committed
[AArch64] Fix -Wunused-but-set-variable in GCC -DLLVM_ENABLE_ASSERTIONS=off build
1 parent cc4244d commit 36e62b1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -865,6 +865,7 @@ static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII,
865865
#ifndef NDEBUG
866866
ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
867867
assert(ValidCopy && "Invalid copy.");
868+
(void)KnownValid;
868869
#endif
869870
return ValidCopy;
870871
};

0 commit comments

Comments
 (0)