use simpler method

llvm-svn: 62974
This commit is contained in:
Chris Lattner 2009-01-25 22:02:19 +00:00
parent 692ed0f67d
commit 4f765fb198
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ void RewriteBlocks::HandleTopLevelDecl(Decl *D) {
RewriteProtocolDecl(PD);
// 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))
HandleDeclInMainFile(D);
return;
}