forked from OSchip/llvm-project
[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:
parent
bd7b7ca3ee
commit
2ed89001e1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue