[cfe-commits] r47491 - /cfe/trunk/Driver/ASTConsumers.cpp
Ted Kremenek
kremenek at apple.com
Fri Feb 22 11:10:58 PST 2008
Author: kremenek
Date: Fri Feb 22 13:10:58 2008
New Revision: 47491
URL: http://llvm.org/viewvc/llvm-project?rev=47491&view=rev
Log:
When running the GRSimpleVals analysis, skip functions that do not
appear in a file.
Modified:
cfe/trunk/Driver/ASTConsumers.cpp
Modified: cfe/trunk/Driver/ASTConsumers.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/ASTConsumers.cpp?rev=47491&r1=47490&r2=47491&view=diff
==============================================================================
--- cfe/trunk/Driver/ASTConsumers.cpp (original)
+++ cfe/trunk/Driver/ASTConsumers.cpp Fri Feb 22 13:10:58 2008
@@ -604,9 +604,11 @@
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() << ' '
More information about the cfe-commits
mailing list