Skip to content

Commit 07aa7c1

Browse files
committed
comment fix
1 parent 1948974 commit 07aa7c1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/IPO/MergeFunctions.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,8 +491,7 @@ template <typename FuncContainer> bool MergeFunctions::run(FuncContainer &M) {
491491
DenseMap<Function *, Function *>
492492
MergeFunctions::runOnFunctions(ArrayRef<Function *> F) {
493493
bool MergeResult = this->run(F);
494-
if (!MergeResult)
495-
this->DelToNewMap = DenseMap<Function *, Function *>();
494+
assert(MergeResult == !DelToNewMap.empty());
496495
return this->DelToNewMap;
497496
}
498497

0 commit comments

Comments
 (0)