Browse Source

Remove the unused MemoryBuffers, no functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178780 91177308-0d34-0410-b5e6-96231b3b80d8
Argyrios Kyrtzidis 12 years ago
parent
commit
ea65cb191c
1 changed files with 0 additions and 8 deletions
  1. 0 8
      lib/Frontend/CompilerInstance.cpp

+ 0 - 8
lib/Frontend/CompilerInstance.cpp

@@ -931,10 +931,6 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro,
       if (FID.isInvalid())
         continue;
 
-      const llvm::MemoryBuffer *Buffer = SourceMgr.getBuffer(FID);
-      if (!Buffer)
-        continue;
-
       // We only care about the predefines buffer.
       if (FID != PP.getPredefinesFileID())
         continue;
@@ -964,10 +960,6 @@ static void checkConfigMacro(Preprocessor &PP, StringRef ConfigMacro,
     if (FID.isInvalid())
       continue;
 
-    const llvm::MemoryBuffer *Buffer = SourceMgr.getBuffer(FID);
-    if (!Buffer)
-      continue;
-
     // We only care about the predefines buffer.
     if (FID != PP.getPredefinesFileID())
       continue;