projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fb7c78
)
Fixes EXPENSIVE_CHECKS build failure caused by 7b684119abc7d94bad47ec0b97b35598fac412d3
author
Vasileios Porpodas
<vporpodas@google.com>
Wed, 14 Dec 2022 19:13:12 +0000
(11:13 -0800)
committer
Vasileios Porpodas
<vporpodas@google.com>
Wed, 14 Dec 2022 19:25:27 +0000
(11:25 -0800)
llvm/lib/IR/Function.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Function.cpp
b/llvm/lib/IR/Function.cpp
index
949eb05
..
06826a8
100644
(file)
--- 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 != From
BB
End && "FromBeginIt not before FromEndIt!");
+ assert(It != From
F
End && "FromBeginIt not before FromEndIt!");
#endif // EXPENSIVE_CHECKS
BasicBlocks.splice(ToIt, FromF->BasicBlocks, FromBeginIt, FromEndIt);
}