We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1948974 commit 07aa7c1Copy full SHA for 07aa7c1
llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@ -491,8 +491,7 @@ template <typename FuncContainer> bool MergeFunctions::run(FuncContainer &M) {
491
DenseMap<Function *, Function *>
492
MergeFunctions::runOnFunctions(ArrayRef<Function *> F) {
493
bool MergeResult = this->run(F);
494
- if (!MergeResult)
495
- this->DelToNewMap = DenseMap<Function *, Function *>();
+ assert(MergeResult == !DelToNewMap.empty());
496
return this->DelToNewMap;
497
}
498
0 commit comments