[cfe-commits] r49687 - /cfe/trunk/Driver/RewriteTest.cpp
Ted Kremenek
kremenek at apple.com
Mon Apr 14 14:24:20 PDT 2008
Author: kremenek
Date: Mon Apr 14 16:24:13 2008
New Revision: 49687
URL: http://llvm.org/viewvc/llvm-project?rev=49687&view=rev
Log:
Use isFromMainFile instead of comparing FileIDs directly.
Modified:
cfe/trunk/Driver/RewriteTest.cpp
Modified: cfe/trunk/Driver/RewriteTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteTest.cpp?rev=49687&r1=49686&r2=49687&view=diff
==============================================================================
--- cfe/trunk/Driver/RewriteTest.cpp (original)
+++ cfe/trunk/Driver/RewriteTest.cpp Mon Apr 14 16:24:13 2008
@@ -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);
}
More information about the cfe-commits
mailing list