[llvm] 66440a4 - Fixes EXPENSIVE_CHECKS build failure caused by 7b684119abc7d94bad47ec0b97b35598fac412d3
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 11:26:24 PST 2022
Author: Vasileios Porpodas
Date: 2022-12-14T11:25:27-08:00
New Revision: 66440a46b172c99399e3456a86b9e54d27ae51d0
URL: https://github.com/llvm/llvm-project/commit/66440a46b172c99399e3456a86b9e54d27ae51d0
DIFF: https://github.com/llvm/llvm-project/commit/66440a46b172c99399e3456a86b9e54d27ae51d0.diff
LOG: Fixes EXPENSIVE_CHECKS build failure caused by 7b684119abc7d94bad47ec0b97b35598fac412d3
Added:
Modified:
llvm/lib/IR/Function.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp
index 949eb05cd6f0..06826a80c614 100644
--- a/llvm/lib/IR/Function.cpp
+++ b/llvm/lib/IR/Function.cpp
@@ -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);
}
More information about the llvm-commits
mailing list