[cfe-commits] r62974 - /cfe/trunk/Driver/RewriteBlocks.cpp

Chris Lattner sabre at nondot.org
Sun Jan 25 14:02:19 PST 2009


Author: lattner
Date: Sun Jan 25 16:02:19 2009
New Revision: 62974

URL: http://llvm.org/viewvc/llvm-project?rev=62974&view=rev
Log:
use simpler method

Modified:
    cfe/trunk/Driver/RewriteBlocks.cpp

Modified: cfe/trunk/Driver/RewriteBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/RewriteBlocks.cpp?rev=62974&r1=62973&r2=62974&view=diff

==============================================================================
--- cfe/trunk/Driver/RewriteBlocks.cpp (original)
+++ cfe/trunk/Driver/RewriteBlocks.cpp Sun Jan 25 16:02:19 2009
@@ -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;
 }





More information about the cfe-commits mailing list