When running the GRSimpleVals analysis, skip functions that do not

appear in a file.

llvm-svn: 47491
This commit is contained in:
Ted Kremenek 2008-02-22 19:10:58 +00:00
parent 43638a87e5
commit 76c03b4a55

View File

@ -604,9 +604,11 @@ void GRSimpleValsVisitor::VisitCFG(CFG& C, FunctionDecl& FD) {
if (FName.size() > 0 && FName != FD.getIdentifier()->getName())
return;
if (FD.getLocation().getFileID() != Ctx->getSourceManager().getMainFileID())
return;
SourceLocation Loc = FD.getLocation();
if (!Loc.isFileID() ||
Loc.getFileID() != Ctx->getSourceManager().getMainFileID())
return;
if (!Visualize) {
llvm::cerr << "ANALYZE: " << FD.getIdentifier()->getName() << ' '