Skip to content

Commit d14db91

Browse files
committed
Use
1 parent ce093a1 commit d14db91

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

clang/lib/StaticAnalyzer/Checkers/AnalyzerStatsChecker.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,7 @@ void AnalyzerStatsChecker::checkEndAnalysis(ExplodedGraph &G,
4545
const SourceManager &SM = B.getSourceManager();
4646
llvm::SmallPtrSet<const CFGBlock*, 32> reachable;
4747

48-
// Root node should have the location context of the top most function.
49-
// FIXME: Use `Eng.getRootLocationContext()` unless `G` can be different from
50-
// the `ExplodedGraph` owned by Eng.
51-
const LocationContext *LC = G.getRoot()->getLocation().getLocationContext();
48+
const LocationContext *LC = Eng.getRootLocationContext();
5249

5350
const Decl *D = LC->getDecl();
5451

0 commit comments

Comments
 (0)