[X86] X86CmovConverterPass::convertCmovInstsToBranches - take a copy of the DebugLoc not a reference as it may be deleted.

Fixes msan warning due to rG9ca2c50b3601
This commit is contained in:
Simon Pilgrim 2021-05-15 16:13:34 +01:00
parent bd7b7ca3ee
commit 2ed89001e1
1 changed files with 1 additions and 1 deletions

View File

@ -650,7 +650,7 @@ void X86CmovConverterPass::convertCmovInstsToBranches(
MachineInstr &MI = *Group.front();
MachineInstr *LastCMOV = Group.back();
const DebugLoc &DL = MI.getDebugLoc();
DebugLoc DL = MI.getDebugLoc();
X86::CondCode CC = X86::CondCode(X86::getCondFromCMov(MI));
X86::CondCode OppCC = X86::GetOppositeBranchCondition(CC);