diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-14 21:24:13 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-14 21:24:13 +0000 |
commit | cf7e958483735935de6e0a64aa1e55a967116303 (patch) | |
tree | c3a84a69aa1166f1da4778e596edd1ec9e6e7b0e /Driver/RewriteTest.cpp | |
parent | d0734e56d6794181e672d705ddb6e5e1f24af4ed (diff) |
Use isFromMainFile instead of comparing FileIDs directly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/RewriteTest.cpp')
-rw-r--r-- | Driver/RewriteTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/RewriteTest.cpp b/Driver/RewriteTest.cpp index 55c5f1a142..1c54c5a81d 100644 --- a/Driver/RewriteTest.cpp +++ b/Driver/RewriteTest.cpp @@ -384,7 +384,7 @@ void RewriteTest::HandleTopLevelDecl(Decl *D) { RewriteForwardProtocolDecl(FP); } // If we have a decl in the main file, see if we should rewrite it. - if (SM->getDecomposedFileLoc(Loc).first == MainFileID) + if (SM->isFromMainFile(Loc)) return HandleDeclInMainFile(D); } |