diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-12-14 11:13:12 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-14 11:25:27 -0800 |
commit | 66440a46b172c99399e3456a86b9e54d27ae51d0 (patch) | |
tree | 4fa2c1af47f37f5a7d5ee0aa7476a478a77b2b44 /llvm/lib/IR/Function.cpp | |
parent | 7fb7c78c46e23f7f8cacd501c1db685549294c41 (diff) | |
download | llvm-66440a46b172c99399e3456a86b9e54d27ae51d0.zip llvm-66440a46b172c99399e3456a86b9e54d27ae51d0.tar.gz llvm-66440a46b172c99399e3456a86b9e54d27ae51d0.tar.bz2 |
Fixes EXPENSIVE_CHECKS build failure caused by 7b684119abc7d94bad47ec0b97b35598fac412d3
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 949eb05..06826a8 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); } |