1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Improve 723fea23079f9c85800e5cdc90a75414af182bfd - Silence 'warning: unused variable' when compiling with Clang 10.0

This commit is contained in:
Alexandre Ganea 2020-09-24 08:24:10 -04:00
parent 2dca188cb2
commit 8b839e28ec

View File

@ -1413,10 +1413,8 @@ bool PeepholeOptimizer::foldRedundantCopy(
MachineInstr *PrevCopy = CopyMIs.find(SrcPair)->second;
#ifndef NDEBUG
unsigned PrevSrcSubReg = PrevCopy->getOperand(1).getSubReg();
#endif
assert(SrcSubReg == PrevSrcSubReg && "Unexpected mismatching subreg!");
assert(SrcSubReg == PrevCopy->getOperand(1).getSubReg() &&
"Unexpected mismatching subreg!");
Register PrevDstReg = PrevCopy->getOperand(0).getReg();