forked from OSchip/llvm-project
[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:
parent
365b225d46
commit
b68bae6a94
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue