aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-14 21:14:41 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-14 21:14:41 +0000
commit080c40b192125434d884a2735b9f63104d274faa (patch)
tree621f7edff0be16d4a8f5e1704635276238fc432e
parent3004be018c7b542bb6cb457c613086d9cddc61f4 (diff)
Use SourceManager::isFromMainFile()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49685 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/ASTConsumers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/ASTConsumers.cpp b/Driver/ASTConsumers.cpp
index 77cc99640a..05debe38d4 100644
--- a/Driver/ASTConsumers.cpp
+++ b/Driver/ASTConsumers.cpp
@@ -670,7 +670,7 @@ void CheckerConsumer::VisitCFG(CFG& C, Decl& CD) {
if (!Loc.isFileID())
return;
- if (!AnalyzeAll && Loc.getFileID() != Ctx->getSourceManager().getMainFileID())
+ if (!AnalyzeAll && !Ctx->getSourceManager().isFromMainFile(Loc))
return;
// Lazily create the diagnostic client.