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 64fcbd9 commit 6a6ba83Copy full SHA for 6a6ba83
lib/SILGen/SILGenFunction.cpp
@@ -1163,9 +1163,8 @@ void SILGenFunction::emitProfilerIncrement(ASTNode N) {
1163
const auto &RegionCounterMap = SP->getRegionCounterMap();
1164
auto CounterIt = RegionCounterMap.find(N);
1165
1166
- // TODO: Assert that this cannot happen (rdar://42792053).
1167
- if (CounterIt == RegionCounterMap.end())
1168
- return;
+ assert(CounterIt != RegionCounterMap.end() &&
+ "cannot increment non-existent counter");
1169
1170
auto Int32Ty = getLoweredType(BuiltinIntegerType::get(32, C));
1171
auto Int64Ty = getLoweredType(BuiltinIntegerType::get(64, C));
0 commit comments