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 2d14162 commit b0943f2Copy full SHA for b0943f2
clang/lib/CodeGen/CodeGenAction.cpp
@@ -238,11 +238,8 @@ void BackendConsumer::HandleTranslationUnit(ASTContext &C) {
238
239
Gen->HandleTranslationUnit(C);
240
241
- if (TimerIsEnabled) {
242
- LLVMIRGenerationRefCount -= 1;
243
- if (LLVMIRGenerationRefCount == 0)
244
- LLVMIRGeneration.stopTimer();
245
- }
+ if (TimerIsEnabled && !--LLVMIRGenerationRefCount)
+ LLVMIRGeneration.yieldTo(CI.getFrontendTimer());
246
}
247
248
// Silently ignore if we weren't initialized for some reason.
0 commit comments