mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 13:21:43 +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();
|
||||
bool Changed = false;
|
||||
do {
|
||||
assert(currentLoop->isLCSSAForm(*DT));
|
||||
assert(!DT || currentLoop->isLCSSAForm(*DT));
|
||||
redoLoop = false;
|
||||
Changed |= processCurrentLoop();
|
||||
} while(redoLoop);
|
||||
|
Loading…
x
Reference in New Issue
Block a user