projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86][Haswell][SchedModel] Add architecture specific scheduling models.
[oota-llvm.git]
/
lib
/
Analysis
/
LoopPass.cpp
diff --git
a/lib/Analysis/LoopPass.cpp
b/lib/Analysis/LoopPass.cpp
index 2c6e6e3ffff3b398c4e8e98c4801304c59178ddf..7bd866e73e10f370100e06ce148f34876deb60b6 100644
(file)
--- a/
lib/Analysis/LoopPass.cpp
+++ b/
lib/Analysis/LoopPass.cpp
@@
-45,8
+45,10
@@
public:
for (Loop::block_iterator b = L->block_begin(), be = L->block_end();
b != be;
++b) {
for (Loop::block_iterator b = L->block_begin(), be = L->block_end();
b != be;
++b) {
- assert((*b) != nullptr && "Expecting non-null block");
- (*b)->print(Out);
+ if (*b)
+ (*b)->print(Out);
+ else
+ Out << "Printing <null> block";
}
return false;
}
}
return false;
}