From: serge-sans-paille Date: Mon, 29 Jun 2020 08:58:08 +0000 (+0200) Subject: Correctly track GCOVProfiling IR update X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ffee8040534495fa739808e6c66a7fc73eca27bb;p=platform%2Fupstream%2Fllvm.git Correctly track GCOVProfiling IR update Differential Revision: https://reviews.llvm.org/D82742 --- diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 3a94096..d8a965a 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -844,7 +844,6 @@ bool GCOVProfiler::emitProfileArcs() { continue; // TODO: Functions using scope-based EH are currently not supported. if (isUsingScopeBasedEH(F)) continue; - if (!Result) Result = true; DenseMap, unsigned> EdgeToCounter; unsigned Edges = 0; @@ -939,6 +938,7 @@ bool GCOVProfiler::emitProfileArcs() { Builder.CreateRetVoid(); appendToGlobalCtors(*M, F, 0); + Result = true; } return Result;