mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-04 14:22:26 +00:00
Fix UB: can't bind a reference to nullptr (NFC)
From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248213 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6030b444bc
commit
527648ee94
@ -419,7 +419,7 @@ bool LoopUnswitch::runOnLoop(Loop *L, LPPassManager &LPM_Ref) {
|
|||||||
Function *F = currentLoop->getHeader()->getParent();
|
Function *F = currentLoop->getHeader()->getParent();
|
||||||
bool Changed = false;
|
bool Changed = false;
|
||||||
do {
|
do {
|
||||||
assert(currentLoop->isLCSSAForm(*DT));
|
assert(!DT || currentLoop->isLCSSAForm(*DT));
|
||||||
redoLoop = false;
|
redoLoop = false;
|
||||||
Changed |= processCurrentLoop();
|
Changed |= processCurrentLoop();
|
||||||
} while(redoLoop);
|
} while(redoLoop);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user