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 706eef8..75aa3c8 100644
--- a/Driver/RewriteBlocks.cpp
+++ b/Driver/RewriteBlocks.cpp
@@ -354,7 +354,7 @@
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;
}