From: Chris Lattner Date: Sun, 25 Jan 2009 22:02:19 +0000 (+0000) Subject: use simpler method X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=23f2c583c503971ed768fe596b163128f65ee5c9;p=clang use simpler method git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62974 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Driver/RewriteBlocks.cpp b/Driver/RewriteBlocks.cpp index 706eef8918..75aa3c863a 100644 --- a/Driver/RewriteBlocks.cpp +++ b/Driver/RewriteBlocks.cpp @@ -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; }