From 4f765fb1983ca5fc662dc4f58d9425eca657f58b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 25 Jan 2009 22:02:19 +0000 Subject: [PATCH] use simpler method llvm-svn: 62974 --- clang/Driver/RewriteBlocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/Driver/RewriteBlocks.cpp b/clang/Driver/RewriteBlocks.cpp index 706eef891820..75aa3c863a19 100644 --- a/clang/Driver/RewriteBlocks.cpp +++ b/clang/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; }