Skip to content

Commit

Permalink
Fixes EXPENSIVE_CHECKS build failure caused by 7b68411
Browse files Browse the repository at this point in the history
  • Loading branch information
vporpo committed Dec 14, 2022
1 parent 7fb7c78 commit 66440a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/IR/Function.cpp
Expand Up @@ -375,7 +375,7 @@ void Function::splice(Function::iterator ToIt, Function *FromF,
// Check that FromBeginIt is before FromEndIt.
auto FromFEnd = FromF->end();
for (auto It = FromBeginIt; It != FromEndIt; ++It)
assert(It != FromBBEnd && "FromBeginIt not before FromEndIt!");
assert(It != FromFEnd && "FromBeginIt not before FromEndIt!");
#endif // EXPENSIVE_CHECKS
BasicBlocks.splice(ToIt, FromF->BasicBlocks, FromBeginIt, FromEndIt);
}
Expand Down

0 comments on commit 66440a4

Please sign in to comment.