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 df66f27 commit 92a8fbdCopy full SHA for 92a8fbd
lib/SIL/IR/SILProfiler.cpp
@@ -395,8 +395,9 @@ class CounterExpr {
395
expand(llvm::coverage::CounterExpressionBuilder &Builder,
396
const llvm::DenseMap<ASTNode, unsigned> &Counters) const {
397
return expand(Builder, [&](auto Node) {
398
- // FIXME: We ought to assert that the node is present.
399
- return Counters.lookup(Node);
+ auto Result = Counters.find(Node);
+ assert(Result != Counters.end() && "Counter not found");
400
+ return Result->second;
401
});
402
}
403
0 commit comments