diff options
author | Chris Lattner <sabre@nondot.org> | 2009-01-25 22:02:19 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-01-25 22:02:19 +0000 |
commit | 23f2c583c503971ed768fe596b163128f65ee5c9 (patch) | |
tree | c1160f700aaf765be5d576ccc4161560c0441181 | |
parent | 4433aafbc2591b82e4ea2fc39c723b21d2497f4d (diff) |
use simpler method
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62974 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | Driver/RewriteBlocks.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |