[AArch64] Fix -Wunused-but-set-variable in GCC non-debug build

[AArch64] Fix -Wunused-but-set-variable in GCC -DLLVM_ENABLE_ASSERTIONS=off non-debug build.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D98431
This commit is contained in:
Simon Wallis 2021-03-11 17:53:44 +00:00
parent 365b225d46
commit b68bae6a94
1 changed files with 1 additions and 1 deletions

View File

@ -884,8 +884,8 @@ static bool selectCopy(MachineInstr &I, const TargetInstrInfo &TII,
#ifndef NDEBUG
ValidCopy = KnownValid || isValidCopy(I, DstRegBank, MRI, TRI, RBI);
assert(ValidCopy && "Invalid copy.");
(void)KnownValid;
#endif
(void)KnownValid;
return ValidCopy;
};