commit | d61ed3b6cb739b29bdf880356b75da970c27de0d | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Mon Apr 14 21:24:13 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Mon Apr 14 21:24:13 2008 +0000 |
tree | 5d5b8ad9172abd8935186ef257ac6b5ac50b56e7 | |
parent | f6aad13242b773777580137d23c3b235e10a4379 [diff] [blame] |
Use isFromMainFile instead of comparing FileIDs directly. llvm-svn: 49687
diff --git a/clang/Driver/RewriteTest.cpp b/clang/Driver/RewriteTest.cpp index 55c5f1a..1c54c5a 100644 --- a/clang/Driver/RewriteTest.cpp +++ b/clang/Driver/RewriteTest.cpp
@@ -384,7 +384,7 @@ 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); }