forked from OSchip/llvm-project
[RegionInfo] More descriptive error messages in verifier
llvm-svn: 244440
This commit is contained in:
parent
11a44b78a3
commit
74d42ad9f9
|
@ -236,7 +236,7 @@ std::string RegionBase<Tr>::getNameStr() const {
|
|||
template <class Tr>
|
||||
void RegionBase<Tr>::verifyBBInRegion(BlockT *BB) const {
|
||||
if (!contains(BB))
|
||||
llvm_unreachable("Broken region found!");
|
||||
llvm_unreachable("Broken region found: enumerated BB not in region!");
|
||||
|
||||
BlockT *entry = getEntry(), *exit = getExit();
|
||||
|
||||
|
@ -244,7 +244,8 @@ void RegionBase<Tr>::verifyBBInRegion(BlockT *BB) const {
|
|||
SE = BlockTraits::child_end(BB);
|
||||
SI != SE; ++SI) {
|
||||
if (!contains(*SI) && exit != *SI)
|
||||
llvm_unreachable("Broken region found!");
|
||||
llvm_unreachable("Broken region found: edges leaving the region must go "
|
||||
"to the exit node!");
|
||||
}
|
||||
|
||||
if (entry != BB) {
|
||||
|
@ -252,7 +253,8 @@ void RegionBase<Tr>::verifyBBInRegion(BlockT *BB) const {
|
|||
SE = InvBlockTraits::child_end(BB);
|
||||
SI != SE; ++SI) {
|
||||
if (!contains(*SI))
|
||||
llvm_unreachable("Broken region found!");
|
||||
llvm_unreachable("Broken region found: edges entering the region must "
|
||||
"go to the entry node!");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue