projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6030b44
)
Fix UB: can't bind a reference to nullptr (NFC)
author
Mehdi Amini
<mehdi.amini@apple.com>
Mon, 21 Sep 2015 21:29:43 +0000
(21:29 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Mon, 21 Sep 2015 21:29:43 +0000
(21:29 +0000)
From: Mehdi Amini <mehdi.amini@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248213
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnswitch.cpp
b/lib/Transforms/Scalar/LoopUnswitch.cpp
index 8aa3c887c2435ed675cedb184cc0456ca705b9ef..a00603bd22fc9b1d257e6e3d9159cdf46e282413 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/
lib/Transforms/Scalar/LoopUnswitch.cpp
@@
-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);